value: fix use of parseFloat
This commit is contained in:
parent
33ab092a06
commit
39619e7d6b
@ -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,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user