Skip token mixes if total sum is 0

This case seems to actually be quite common during fuzzing
This commit is contained in:
Aleksandras Kostarevas 2024-05-16 18:37:43 -05:00
parent 4e2d80fc67
commit dcce3ea5ae

View File

@ -1082,7 +1082,7 @@ namespace latinime {
}
if(total_sum == 0.0f) {
AKLOGE("Oh crap");
continue;
}
for(int j=0; j<NUM_TOKEN_MIX; j++) {