Update to SomeInteger

This commit is contained in:
coffeepots 2018-08-16 10:08:56 +01:00 committed by zah
parent 13a9a1f58b
commit f6ad1fd1c7

View File

@ -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: