From 890845ac76a65568da235e97053d2e58202bbbf6 Mon Sep 17 00:00:00 2001 From: marcosmmorato-byte Date: Fri, 26 Jun 2026 02:12:22 +0200 Subject: [PATCH] Fix const-correctness in ggml_vec_dot_i2_i8_s_Nx1 y_col estaba declarado como int8_t* pero se inicializaba desde un puntero const (y), lo cual falla al compilar con Clang 18.1.8 (toolset ClangCL de VS2022 BuildTools en Windows). --- 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;