Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update src/tools/fuzzing/fuzzing.cpp
Co-authored-by: Thomas Lively <tlively123@gmail.com>
  • Loading branch information
kripken and tlively authored Apr 15, 2024
commit 6f21639f9f384b4e27a80e5e487e8b28e8729051
5 changes: 1 addition & 4 deletions src/tools/fuzzing/fuzzing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2458,10 +2458,7 @@ Expression* TranslateToFuzzReader::makeRefFuncConst(Type type) {
if (Type::isSubType(Type(func->type, NonNullable), type)) {
return builder.makeRefFunc(func->name, func->type);
}
i++;
if (i == wasm.functions.size()) {
i = 0;
}
i = (i + 1) % wasm.functions.size();
} while (i != start);
}
// We don't have a matching function. Create a null some of the time here,
Expand Down