diff options
| author | Taylan Kammer <taylan.kammer@gmail.com> | 2026-08-16 10:01:12 +0200 |
|---|---|---|
| committer | Taylan Kammer <taylan.kammer@gmail.com> | 2026-08-16 10:01:12 +0200 |
| commit | e26e81aa33dc1ecc2f26de26b1d420d288a28493 (patch) | |
| tree | d0c906f3b6d504870a171f57709c6e912a3fc9c4 /src/zisp/util/seg_stack.zig | |
| parent | 0e073b94c90b78ebe156adb27ec4456e86935d42 (diff) | |
Implemented meta allocator.
Diffstat (limited to 'src/zisp/util/seg_stack.zig')
| -rw-r--r-- | src/zisp/util/seg_stack.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zisp/util/seg_stack.zig b/src/zisp/util/seg_stack.zig index 4abb6ef..2794657 100644 --- a/src/zisp/util/seg_stack.zig +++ b/src/zisp/util/seg_stack.zig @@ -11,7 +11,7 @@ pub fn SegStack(T: type, seg_max_bytes: comptime_int) type { // correct segment size (in element count) based on that. const seg_size = (seg_max_bytes - @sizeOf(usize)) / @sizeOf(T); - const IdxType = std.math.IntFittingRange(seg_size); + const IdxType = std.math.IntFittingRange(0, seg_size); comptime { if (seg_size < 4) { |
