mirror of
https://github.com/status-im/nim-json-serialization.git
synced 2025-02-19 21:38:09 +00:00
fix Nim 1.6 deprecation warning (#48)
This commit is contained in:
parent
dbe0f1ae51
commit
5a7f9a86cb
@ -217,7 +217,7 @@ proc writeValue*(w: var JsonWriter, value: auto) =
|
||||
w.stream.writeText ord(value)
|
||||
|
||||
elif value is range:
|
||||
when low(value) < 0:
|
||||
when low(typeof(value)) < 0:
|
||||
w.stream.writeText int64(value)
|
||||
else:
|
||||
w.stream.writeText uint64(value)
|
||||
|
Loading…
x
Reference in New Issue
Block a user