make fuzzer better and add missing else

This commit is contained in:
Brendan Hansknecht 2024-07-28 16:26:31 -07:00
parent 109dba836e
commit 285c43e288
No known key found for this signature in database
GPG key ID: 0EA784685083E75B
2 changed files with 7 additions and 7 deletions

View file

@ -52,8 +52,7 @@ pub fn fluxsort(
if (len < 132) {
// Just quadsort it.
quadsort(array, len, cmp, cmp_data, data_is_owned_runtime, inc_n_data, element_width, alignment, copy);
}
if (element_width <= MAX_ELEMENT_BUFFER_SIZE) {
} else if (element_width <= MAX_ELEMENT_BUFFER_SIZE) {
if (data_is_owned_runtime) {
fluxsort_direct(array, len, cmp, cmp_data, element_width, alignment, copy, true, inc_n_data);
} else {