Skip to content

Commit 24f279b

Browse files
Update src/forder.c
Co-authored-by: Benjamin Schwendinger <[email protected]>
1 parent 996e7c6 commit 24f279b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/forder.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ static void cradix_r(SEXP *xsub, int n, int radix)
280280

281281
static void cradix(SEXP *x, int n)
282282
{
283-
cradix_counts = calloc(ustr_maxlen*256, sizeof(int)); // counts for the letters of left-aligned strings
283+
cradix_counts = calloc(ustr_maxlen*256, sizeof(*cradix_counts)); // counts for the letters of left-aligned strings
284284
cradix_xtmp = malloc(sizeof(*cradix_xtmp) * ustr_n);
285285
if (!cradix_counts || !cradix_xtmp) {
286286
free(cradix_counts); free(cradix_xtmp); // # nocov

0 commit comments

Comments
 (0)