aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Value.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Value.zig b/src/Value.zig
index 25f5b50166..8962d6b763 100644
--- a/src/Value.zig
+++ b/src/Value.zig
@@ -1066,6 +1066,7 @@ pub fn orderAgainstZeroInner(
.float => |float| switch (float.storage) {
inline else => |x| std.math.order(x, 0),
},
+ .err => .gt, // error values cannot be 0
else => unreachable,
},
};