diff options
Diffstat (limited to 'src/zisp/util')
| -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) { |
