From 0549022ae8de7051c53516ab0e215f6109d7f247 Mon Sep 17 00:00:00 2001 From: M3 <100230812+MohamedMamdouhMorsi@users.noreply.github.com> Date: Thu, 29 Jan 2026 03:11:15 +0200 Subject: [PATCH] Change y_col to const in ggml-bitnet-mad.cpp i had error when i try to test the project i fixed by add const --- src/ggml-bitnet-mad.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ggml-bitnet-mad.cpp b/src/ggml-bitnet-mad.cpp index 4ba9d6509..ed6ca3a6d 100644 --- a/src/ggml-bitnet-mad.cpp +++ b/src/ggml-bitnet-mad.cpp @@ -808,7 +808,7 @@ void ggml_vec_dot_i2_i8_s_Nx1(int n, float * s, size_t bs, const void * vx, size accu[iy] = _mm256_setzero_si256(); } - int8_t * y_col = y + col * by; + const int8_t * y_col = y + col * by; for (int i = 0; i < group32_num; i++) { const uint8_t *px = x + i * 1024; @@ -1053,4 +1053,4 @@ void ggml_vec_dot_i2_i8_s(int n, float * s, size_t bs, const void * vx, size_t b { ggml_vec_dot_i2_i8_s_1x1(n, s, bs, vx, bx, vy, by, nrc); } -} \ No newline at end of file +}