diff --git a/json_rpc/jsonmarshal.nim b/json_rpc/jsonmarshal.nim index 2e33f5f..e7a8a41 100644 --- a/json_rpc/jsonmarshal.nim +++ b/json_rpc/jsonmarshal.nim @@ -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: