From f6ad1fd1c7d7bfec7216b7cc02c7850e1caa416f Mon Sep 17 00:00:00 2001 From: coffeepots Date: Thu, 16 Aug 2018 10:08:56 +0100 Subject: [PATCH] Update to SomeInteger --- json_rpc/jsonmarshal.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: