libstrvec-c

C string vector library
git clone https://git.sinitax.com/sinitax/libstrvec-c
Log | Files | Refs | LICENSE | sfeed.txt

commit efba5f45438c08a5fe9a1533164e39b3fa3c58aa
parent 434cb3d1f03912716b75d9d6704d9c6c3a810195
Author: Louis Burda <quent.burda@gmail.com>
Date:   Mon, 20 May 2024 13:28:09 +0200

Fix type error due to new libstr

Diffstat:
D.gitmodules | 0
Minclude/strvec.h | 3++-
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitmodules b/.gitmodules diff --git 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 **