From ba16ce02493b52083ad74a482fd7bcf51b28dc3f Mon Sep 17 00:00:00 2001 From: Steven Lu Date: Wed, 21 Jan 2026 20:03:37 +0700 Subject: [PATCH] reintroduce assertion, with adjusted limit --- src/datastruct/split_tree.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/datastruct/split_tree.zig b/src/datastruct/split_tree.zig index b340cb608..0a4c0bdbd 100644 --- a/src/datastruct/split_tree.zig +++ b/src/datastruct/split_tree.zig @@ -794,6 +794,7 @@ pub fn SplitTree(comptime V: type) type { layout: Split.Layout, ratio: f16, ) Allocator.Error!Self { + assert(ratio >= -1 and ratio <= 1); assert(!std.math.isNan(ratio)); assert(!std.math.isInf(ratio));