reintroduce assertion, with adjusted limit

This commit is contained in:
Steven Lu
2026-01-21 20:03:37 +07:00
parent 2d7305a16a
commit ba16ce0249

View File

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