mirror of
https://github.com/tezc/sc.git
synced 2025-01-28 07:03:06 +08:00
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:
parent
19ad3a4478
commit
ce278458c9
@ -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; \
|
||||
} \
|
||||
\
|
||||
|
Loading…
x
Reference in New Issue
Block a user