From 6d36a51fa50a3f4091c47fb53d92bed4e1d53231 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Wed, 19 Apr 2023 19:18:28 +0300 Subject: [PATCH] ggml : satisfy the sanitizer builds Not sure why this makes them fail --- ggml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggml.c b/ggml.c index 8792dd638..5177baeb4 100644 --- a/ggml.c +++ b/ggml.c @@ -1124,7 +1124,7 @@ static void quantize_row_q4_2_reference(const float * restrict x, block_q4_2 * r } } -inline int nearestInt(float fval) { +static inline int nearestInt(float fval) { assert(fval <= 4194303.f); float val = fval + 12582912.f; int i; memcpy(&i, &val, sizeof(int));