mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
correctly do the JSON backport
This commit is contained in:
@@ -1121,7 +1121,7 @@ when defined(nimFixedForwardGeneric):
|
||||
dst = cast[T](jsonNode.num)
|
||||
|
||||
proc initFromJson[T: SomeFloat](dst: var T; jsonNode: JsonNode; jsonPath: var string) =
|
||||
verifyJsonKind(jsonNode, {JInt, JFloat}, jsonPath)
|
||||
verifyJsonKind(jsonNode, {JInt, JFloat, JString}, jsonPath)
|
||||
if jsonNode.kind == JString:
|
||||
case jsonNode.str
|
||||
of "nan":
|
||||
|
||||
Reference in New Issue
Block a user