diff options
Diffstat (limited to 'src/ast')
-rw-r--r-- | src/ast/base.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ast/base.zig b/src/ast/base.zig index 8e2635004..92f15f983 100644 --- a/src/ast/base.zig +++ b/src/ast/base.zig @@ -34,7 +34,7 @@ pub const Ref = packed struct { .source_index = std.math.maxInt(Ref.Int), }; pub fn toInt(int: anytype) Int { - return std.math.lossyCast(Ref.Int, int); + return @intCast(Int, int); } pub fn isNull(self: *const Ref) bool { return self.source_index == std.math.maxInt(Ref.Int) and self.inner_index == std.math.maxInt(Ref.Int); |