From db39bfa6578fff2e4fb9685aea83a6c67f4c698c Mon Sep 17 00:00:00 2001 From: Vitor Araujo Date: Sat, 14 Mar 2026 15:07:04 -0300 Subject: [PATCH] fix: const correctness in ggml-bitnet-mad.cpp Change y_col from int8_t* to const int8_t* to match the const qualifier of the source pointer and allow successful compilation with newer Clang versions. --- src/ggml-bitnet-mad.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ggml-bitnet-mad.cpp b/src/ggml-bitnet-mad.cpp index 4ba9d6509..ad18bac04 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;