authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-02-12 02:23:41 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-02-12 02:23:41 -08:00
logc42e6387d1ecb15b82fce5c8c08728e93a7b932c
tree958f8525795d82ae24f52e21fc20822d5abc6a5c
parent20c587e9670347dbac378bf15753649fbc0d975d

use extras.parseDigits


1 files changed, 1 insertions(+), 1 deletions(-)

json.zig+1-1
...@@ -702,7 +702,7 @@ pub const NumberIndex = enum(u32) {...@@ -702,7 +702,7 @@ pub const NumberIndex = enum(u32) {
702702
703 pub fn get(this: NumberIndex, comptime T: type) T {703 pub fn get(this: NumberIndex, comptime T: type) T {
704 return switch (@typeInfo(T)) {704 return switch (@typeInfo(T)) {
705 .int => std.fmt.parseInt(T, this.to(), 10) catch unreachable,705 .int => extras.parseDigits(T, this.to(), 10) catch unreachable,
706 .float => std.fmt.parseFloat(T, this.to()) catch unreachable,706 .float => std.fmt.parseFloat(T, this.to()) catch unreachable,
707 else => @compileError("not a number type"),707 else => @compileError("not a number type"),
708 };708 };