aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-01-08 19:22:21 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-01-08 19:22:21 +0100
commiteaaf97836a82bba196283c2acd3f14a68b02a591 (patch)
tree8360885ba6a28430137d6049d85b46b2399e2303
parentdabb8895be7be31ca154919134876508f1e09fd2 (diff)
Switch ptrdiff_t cast for a size_t cast
-rw-r--r--da.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/da.h b/da.h
index fa31e56..e44a58d 100644
--- a/da.h
+++ b/da.h
@@ -113,6 +113,6 @@
} while (0)
#define da_foreach(a, p) \
- for (auto p = (a)->buf; p - (a)->buf < (ptrdiff_t)(a)->len; p++)
+ for (auto p = (a)->buf; (size_t)(p - (a)->buf) < (a)->len; p++)
#endif /* !MANGO_DA_H */