ggml : satisfy the sanitizer builds

Not sure why this makes them fail
This commit is contained in:
Georgi Gerganov 2023-04-19 19:18:28 +03:00
parent 6eec06081b
commit 6d36a51fa5
No known key found for this signature in database
GPG key ID: 449E073F9DC10735

2
ggml.c
View file

@ -1124,7 +1124,7 @@ static void quantize_row_q4_2_reference(const float * restrict x, block_q4_2 * r
}
}
inline int nearestInt(float fval) {
static inline int nearestInt(float fval) {
assert(fval <= 4194303.f);
float val = fval + 12582912.f;
int i; memcpy(&i, &val, sizeof(int));