aboutsummaryrefslogtreecommitdiff
path: root/src/da.h
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-01-27 23:32:01 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-01-27 23:32:01 +0100
commit64d8302da4f21fd974d074f0be4d039dda78c8a8 (patch)
tree7ee2bb5dd578d702f3a6fbb32c1ec1c74c098d95 /src/da.h
parentb8965345d9898ffee6f34b9e8b09925775b5a6dc (diff)
Require C23
Diffstat (limited to 'src/da.h')
-rw-r--r--src/da.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/da.h b/src/da.h
index 57b7ed1..8891971 100644
--- a/src/da.h
+++ b/src/da.h
@@ -116,6 +116,6 @@
} while (0)
#define da_foreach(a, p) \
- for (auto p = (a)->buf; (size_t)(p - (a)->buf) < (a)->len; p++)
+ for (typeof((a)->buf) p = (a)->buf; (size_t)(p - (a)->buf) < (a)->len; p++)
#endif /* !MANGO_DA_H */