Skip to content

Commit 30c3bee

Browse files
author
Jah-yee
committed
fix: change y_col to const int8_t* for Windows Clang build compatibility
- Line 811: changed 'int8_t * y_col' to 'const int8_t * y_col' - This fixes the const pointer mismatch error when building with Clang/ClangCL on Windows - The variable is used with const int8_t* py, so it should also be const Fixes issue #489
1 parent 01eb415 commit 30c3bee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ggml-bitnet-mad.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ void ggml_vec_dot_i2_i8_s_Nx1(int n, float * s, size_t bs, const void * vx, size
808808
accu[iy] = _mm256_setzero_si256();
809809
}
810810

811-
int8_t * y_col = y + col * by;
811+
const int8_t * y_col = y + col * by;
812812

813813
for (int i = 0; i < group32_num; i++) {
814814
const uint8_t *px = x + i * 1024;

0 commit comments

Comments
 (0)