makes Aporia build for 64bit archs
This commit is contained in:
parent
21ccc5d58e
commit
b870744d5d
2 changed files with 173 additions and 178 deletions
|
|
@ -56,11 +56,6 @@ proc genLiteral(p: BProc, n: PNode, ty: PType): PRope =
|
||||||
case skipTypes(ty, abstractVarRange).kind
|
case skipTypes(ty, abstractVarRange).kind
|
||||||
of tyChar, tyNil:
|
of tyChar, tyNil:
|
||||||
result = intLiteral(n.intVal)
|
result = intLiteral(n.intVal)
|
||||||
of tyInt:
|
|
||||||
if n.intVal >= low(int32) and n.intVal <= high(int32):
|
|
||||||
result = int32Literal(int32(n.intVal))
|
|
||||||
else:
|
|
||||||
result = intLiteral(n.intVal)
|
|
||||||
of tyBool:
|
of tyBool:
|
||||||
if n.intVal != 0: result = ~"NIM_TRUE"
|
if n.intVal != 0: result = ~"NIM_TRUE"
|
||||||
else: result = ~"NIM_FALSE"
|
else: result = ~"NIM_FALSE"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue