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: