diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/strvec.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/strvec.h b/include/strvec.h index 1a4713d..7ce1153 100644 --- a/include/strvec.h +++ b/include/strvec.h @@ -3,6 +3,7 @@ #include "dvec.h" #include "allocator.h" +#include <stddef.h> #include <stdbool.h> #define STRVEC_ITER(strvec, p) (p) = NULL; ((p) = strvec_iter_fwd((strvec), (p))); @@ -73,7 +74,7 @@ strvec_stra(struct strvec *strvec) { LIBSTRVEC_ABORT_ON_ARGS(!strvec && !strvec->vec.data); - return strvec->vec.data; + return (const char **)strvec->vec.data; } static inline const char ** |
