Skip to content

fix: const correctness in ggml-bitnet-mad.cpp#465

Open
vitorgamer58 wants to merge 1 commit intomicrosoft:mainfrom
vitorgamer58:fix-const-build-error
Open

fix: const correctness in ggml-bitnet-mad.cpp#465
vitorgamer58 wants to merge 1 commit intomicrosoft:mainfrom
vitorgamer58:fix-const-build-error

Conversation

@vitorgamer58
Copy link

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.

Fixes: #463

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.
@rodrigocnascimento
Copy link

rodrigocnascimento commented Mar 14, 2026

I can confirm. This fixed the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build Error: cannot initialize a variable of type 'int8_t *' with an rvalue of type 'const int8_t

2 participants