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)
|
w.stream.writeText ord(value)
|
||||||
|
|
||||||
elif value is range:
|
elif value is range:
|
||||||
when low(value) < 0:
|
when low(typeof(value)) < 0:
|
||||||
w.stream.writeText int64(value)
|
w.stream.writeText int64(value)
|
||||||
else:
|
else:
|
||||||
w.stream.writeText uint64(value)
|
w.stream.writeText uint64(value)
|
||||||
|
|
Loading…
Reference in New Issue