fix order of arguments in call to calloc (#132)

GCC 14 reports it as "error: ‘calloc’ sizes specified with ‘sizeof’ in
the earlier argument and not in the later argument
[-Werror=calloc-transposed-args]" and compilation fails otherwise.
This commit is contained in:
thranur 2024-09-17 08:37:46 +02:00 committed by GitHub
parent 19ad3a4478
commit ce278458c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -108,7 +108,7 @@
v++; \
\
*cap = v; \
t = sc_map_calloc(sizeof(*t), v + 1); \
t = sc_map_calloc(v + 1, sizeof(*t)); \
return t ? &t[1] : NULL; \
} \
\