ggml : satisfy the sanitizer builds
Not sure why this makes them fail
This commit is contained in:
parent
6eec06081b
commit
6d36a51fa5
1 changed files with 1 additions and 1 deletions
2
ggml.c
2
ggml.c
|
@ -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);
|
assert(fval <= 4194303.f);
|
||||||
float val = fval + 12582912.f;
|
float val = fval + 12582912.f;
|
||||||
int i; memcpy(&i, &val, sizeof(int));
|
int i; memcpy(&i, &val, sizeof(int));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue