From 896cdc21217ab4d0b2bcb8b18938d3c0efc94dc1 Mon Sep 17 00:00:00 2001 From: Ed Addario Date: Sun, 21 Sep 2025 22:03:36 +0100 Subject: [PATCH] Refactor potential overflow --- src/llama-quant.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llama-quant.cpp b/src/llama-quant.cpp index 8a709ddfdd..52d7984e2a 100644 --- a/src/llama-quant.cpp +++ b/src/llama-quant.cpp @@ -1002,7 +1002,7 @@ static std::unordered_map target_bpw_type( const std::string name = ggml_get_name(tensor); if (!can_quantize(tensor)) { continue; } - LLAMA_LOG_INFO("\t%s: - processing tensor %45s \t(%12d elements)\n", __func__, name.c_str(), (int)ggml_nelements(tensor)); + LLAMA_LOG_INFO("\t%s: - processing tensor %45s \t(%12" PRId64 " elements)\n", __func__, name.c_str(), ggml_nelements(tensor)); if (!ml.use_mmap) { if (buffer.size() < ggml_nbytes(tensor)) { buffer.resize(ggml_nbytes(tensor)); } tensor->data = buffer.data();