mirror of
https://github.com/status-im/nim-json-rpc.git
synced 2025-02-25 02:35:15 +00:00
Update to SomeInteger
This commit is contained in:
parent
13a9a1f58b
commit
f6ad1fd1c7
@ -9,7 +9,7 @@ proc `%`*(n: byte{not lit}): JsonNode =
|
|||||||
proc `%`*(n: uint64{not lit}): JsonNode =
|
proc `%`*(n: uint64{not lit}): JsonNode =
|
||||||
result = newJInt(int(n))
|
result = newJInt(int(n))
|
||||||
|
|
||||||
proc `%`*(n: ref int | ref int64): JsonNode =
|
proc `%`*(n: ref SomeInteger): JsonNode =
|
||||||
if n.isNil:
|
if n.isNil:
|
||||||
result = newJNull()
|
result = newJNull()
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user