mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
fuzzer ui: remove wrong optimized float mode
Some of the stats used as denomenators may be at zero, especially if a fuzz test is stuck in an infinite loop, so allowing float division by zero is necessary.
This commit is contained in:
@@ -255,7 +255,7 @@ fn unpackSourcesInner(tar_bytes: []u8) !void {
|
||||
}
|
||||
|
||||
fn updateStats() error{OutOfMemory}!void {
|
||||
@setFloatMode(.optimized);
|
||||
// No @setFloatMode(.optimized) since some stats may be at zero and lead to divisions by zero
|
||||
|
||||
if (recent_coverage_update.items.len == 0) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user