Use BiggestInt in generated code
This commit is contained in:
parent
cc0472da3d
commit
895a8695d2
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue