aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 */