Skip to content

Commit ce27845

Browse files
authored
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.
1 parent 19ad3a4 commit ce27845

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

map/sc_map.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
v++; \
109109
\
110110
*cap = v; \
111-
t = sc_map_calloc(sizeof(*t), v + 1); \
111+
t = sc_map_calloc(v + 1, sizeof(*t)); \
112112
return t ? &t[1] : NULL; \
113113
} \
114114
\

0 commit comments

Comments
 (0)