summaryrefslogtreecommitdiff
path: root/src/datastruct/split_tree.zig
diff options
context:
space:
mode:
authorMitchell Hashimoto <m@mitchellh.com>2025-08-12 11:04:17 -0700
committerMitchell Hashimoto <m@mitchellh.com>2025-08-12 11:04:34 -0700
commit93da59682f36f8c275721e9c01a006b0986ee994 (patch)
treece5d4965ddec7922c54c7ef715ae750ac693750f /src/datastruct/split_tree.zig
parent4afd3445c4013693a85ecdde04d02c17010decae (diff)
apprt/gtk-ng: resizeSplit action
Diffstat (limited to 'src/datastruct/split_tree.zig')
-rw-r--r--src/datastruct/split_tree.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/datastruct/split_tree.zig b/src/datastruct/split_tree.zig
index 191e64238..29aab3fdc 100644
--- a/src/datastruct/split_tree.zig
+++ b/src/datastruct/split_tree.zig
@@ -723,6 +723,8 @@ pub fn SplitTree(comptime V: type) type {
ratio: f16,
) Allocator.Error!Self {
assert(ratio >= 0 and ratio <= 1);
+ assert(!std.math.isNan(ratio));
+ assert(!std.math.isInf(ratio));
// Fast path empty trees.
if (self.isEmpty()) return .empty;