From c42e6387d1ecb15b82fce5c8c08728e93a7b932c Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Thu, 12 Feb 2026 02:23:41 -0800 Subject: [PATCH] use extras.parseDigits --- json.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"), }; -- 2.54.0