diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-01-08 19:22:21 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-01-08 19:22:21 +0100 |
commit | eaaf97836a82bba196283c2acd3f14a68b02a591 (patch) | |
tree | 8360885ba6a28430137d6049d85b46b2399e2303 | |
parent | dabb8895be7be31ca154919134876508f1e09fd2 (diff) |
Switch ptrdiff_t cast for a size_t cast
-rw-r--r-- | da.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |