From 87431ad74f0642e067cd0bf6e9e80c50a749e6cd Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 4 May 2024 23:58:48 +0200 Subject: Don’t take a pointer argument in da_foreach MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/dynarr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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 */ -- cgit v1.2.3