diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-05-04 23:58:48 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-05-04 23:59:43 +0200 |
commit | 87431ad74f0642e067cd0bf6e9e80c50a749e6cd (patch) | |
tree | e41d01bda617657cca7f52cc2b6befd3558316a1 /include | |
parent | e109b400133f57ce129f5e274fbb90cca0052a3b (diff) |
Don’t take a pointer argument in da_foreach
Diffstat (limited to 'include')
-rw-r--r-- | include/dynarr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dynarr.h b/include/dynarr.h index 255ab94..dcc28a6 100644 --- a/include/dynarr.h +++ b/include/dynarr.h @@ -48,6 +48,6 @@ } while (false) #define da_foreach(da, p) \ - for (auto p = (da)->buf; (size_t)(p - (da)->buf) < (da)->len; p++) + for (auto p = (da).buf; (size_t)(p - (da).buf) < (da).len; p++) #endif /* !MLIB_DYNARR_H */ |