Skip to content

Commit

Permalink
setting maxValidAbsValue to be uint64
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmer committed Nov 24, 2023
1 parent ccce859 commit 11a5522
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion json_serialization/reader.nim
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ proc readValue*[T](r: var JsonReader, value: var T)
type TargetType = type(value)
let
isNegative = tok == tkNegativeInt
maxValidAbsValue =
maxValidAbsValue: uint64 =
if isNegative:
TargetType.high.uint64 + 1
else:
Expand Down

0 comments on commit 11a5522

Please sign in to comment.