diff --git a/src/gsumm.c b/src/gsumm.c index 2047c61cd..742e718f4 100644 --- a/src/gsumm.c +++ b/src/gsumm.c @@ -616,7 +616,7 @@ SEXP gmean(SEXP x, SEXP narmArg) } else { // narm==true and anyNA==true int *restrict nna_counts = calloc(ngrp, sizeof(int)); - if (!nna_counts) error(_("Unable to allocate %d * %d bytes for non-NA counts in gmean na.rm=TRUE"), ngrp, sizeof(int)); + if (!nna_counts) error(_("Unable to allocate %d * %lu bytes for non-NA counts in gmean na.rm=TRUE"), ngrp, sizeof(int)); #pragma omp parallel for num_threads(getDTthreads(highSize, false)) for (int h=0; h