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));