From 39619e7d6bc94ae25fb259f04d59f0175c541a07 Mon Sep 17 00:00:00 2001 From: torque Date: Thu, 23 Nov 2023 17:52:30 -0800 Subject: [PATCH] value: fix use of parseFloat --- src/parser/value.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser/value.zig b/src/parser/value.zig index 1038d01..2138e7f 100644 --- a/src/parser/value.zig +++ b/src/parser/value.zig @@ -106,7 +106,7 @@ pub const Value = union(enum) { switch (self) { inline .scalar, .string => |str, tag| { if (tag == .string and !options.coerce_strings) return error.BadValue; - return try std.fmt.parseFloat(T, str, 0); + return try std.fmt.parseFloat(T, str); }, else => return error.BadValue, }