diff --git a/src/root.zig b/src/root.zig index 4d87c86..09625f5 100644 --- a/src/root.zig +++ b/src/root.zig @@ -365,7 +365,7 @@ pub fn Range(comptime T: type, end_type: RangeEndType) type { } pub fn sizeHint(self: *const Self) usize { - return self.end - self.current + @intFromBool(end_type == .inclusive); + return @intCast(self.end - self.current + @intFromBool(end_type == .inclusive)); } }; }