From 895a8695d2c2083a1eb0e6b43e5dbab0c427bd28 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Sat, 9 Jul 2022 08:08:11 -0500 Subject: [PATCH] Use BiggestInt in generated code --- src/preserves/preserves_schema_nim.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/preserves/preserves_schema_nim.nim b/src/preserves/preserves_schema_nim.nim index 750708e..635e707 100644 --- a/src/preserves/preserves_schema_nim.nim +++ b/src/preserves/preserves_schema_nim.nim @@ -281,7 +281,7 @@ proc typeIdent(atom: AtomKind): PNode = of AtomKind.`Boolean`: ident"bool" of AtomKind.`Float`: ident"float32" of AtomKind.`Double`: ident"float64" - of AtomKind.`Signedinteger`: ident"int" + of AtomKind.`Signedinteger`: ident"BiggestInt" of AtomKind.`String`: ident"string" of AtomKind.`Bytestring`: nn(nkBracketExpr, ident"seq", ident"byte") of AtomKind.`Symbol`: ident"Symbol" @@ -616,7 +616,7 @@ proc literalToPreserveCall(scm: Schema; pr: Preserve): PNode = of pkDouble: constr($pr.orKind, "double", newFloatNode(nkFloat64Lit, pr.double)) of pkSignedInteger: - constr($pr.orKind, "int", newIntNode(nkInt64Lit, pr.int)) + constr($pr.orKind, "BiggestInt", newIntNode(nkInt64Lit, pr.int)) of pkString: constr($pr.orKind, "string", newStrNode(nkTripleStrLit, pr.string)) of pkByteString: