From efba5f45438c08a5fe9a1533164e39b3fa3c58aa Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Mon, 20 May 2024 13:28:09 +0200 Subject: Fix type error due to new libstr --- include/strvec.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') 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 #include #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 ** -- cgit v1.2.3-71-gd317