diff --git a/ggml.c b/ggml.c index 912a8ca2e..793b67f4c 100644 --- a/ggml.c +++ b/ggml.c @@ -20335,7 +20335,7 @@ size_t ggml_quantize_chunk( int64_t nrows, int64_t n_per_row, const float * imatrix) { - const size_t n = (size_t) nrows * n_per_row; + const int64_t n = (int64_t) nrows * n_per_row; if (ggml_quantize_requires_imatrix(type)) { GGML_ASSERT(imatrix != NULL);