mirror of
https://github.com/status-im/nim-json-rpc.git
synced 2025-02-24 18:28:10 +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 =
|
||||
result = newJInt(int(n))
|
||||
|
||||
proc `%`*(n: ref int | ref int64): JsonNode =
|
||||
proc `%`*(n: ref SomeInteger): JsonNode =
|
||||
if n.isNil:
|
||||
result = newJNull()
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user