mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-15 03:52:39 +00:00
reintroduce assertion, with adjusted limit
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user