diff options
author | Georgi Gerganov <ggerganov@gmail.com> | 2024-05-23 17:17:43 +0300 |
---|---|---|
committer | Georgi Gerganov <ggerganov@gmail.com> | 2024-05-23 17:25:38 +0300 |
commit | 1debe72737ea131cb52975da3d53ed3a835df3a6 (patch) | |
tree | 171713c1ccdab6755f520b5331c411cb2dfdb169 /ggml-quants.c | |
parent | 007489e895bad02e4e54758bf0bdf2d6a4cdb7c1 (diff) |
ggml : silence UB sanitizer error during iq2_xxs quantization (#0)
Diffstat (limited to 'ggml-quants.c')
-rw-r--r-- | ggml-quants.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ggml-quants.c b/ggml-quants.c index 88f58a33..bb01ce93 100644 --- a/ggml-quants.c +++ b/ggml-quants.c @@ -12144,7 +12144,7 @@ static void quantize_row_iq2_xxs_impl(const float * restrict x, void * restrict printf("\n"); GGML_ASSERT(false); } - q2[2*ib+0] |= (grid_index << 8*k); + q2[2*ib+0] |= ((uint32_t) grid_index << 8*k); q2[2*ib+1] |= (block_signs[k] << 7*k); } GGML_ASSERT(scale >= 0); |