Skip to content

Commit baa8b5d

Browse files
try macOS fix
1 parent 299d681 commit baa8b5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test-gguf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ static FILE * get_handcrafted_file(const unsigned int seed, const enum handcraft
262262

263263
size_t type_size = hft == HANDCRAFTED_KV_BAD_TYPE ? 1 : gguf_type_size(type);
264264
if (hft == HANDCRAFTED_KV_BAD_VALUE_SIZE) {
265-
type_size += rng() % 3 - 1;
265+
type_size += rng() % 3;
266266
}
267267
helper_write(data, type_size, file);
268268
}

0 commit comments

Comments
 (0)