diff --git a/json.zig b/json.zig index 82e03a59bbf5f2a8612b512ddf4c0023b498655f..d5f5c1f2527d36dbaeaf849e47dc1863895bdbef 100644 --- a/json.zig +++ b/json.zig @@ -702,7 +702,7 @@ pub const NumberIndex = enum(u32) { pub fn get(this: NumberIndex, comptime T: type) T { return switch (@typeInfo(T)) { - .int => std.fmt.parseInt(T, this.to(), 10) catch unreachable, + .int => extras.parseDigits(T, this.to(), 10) catch unreachable, .float => std.fmt.parseFloat(T, this.to()) catch unreachable, else => @compileError("not a number type"), };