fixes #6568
This commit is contained in:
parent
fe18769fe1
commit
75dd3763cf
1 changed files with 1 additions and 1 deletions
|
|
@ -1650,7 +1650,7 @@ proc genNewSeq(p: PProc, n: PNode) =
|
|||
|
||||
proc genOrd(p: PProc, n: PNode, r: var TCompRes) =
|
||||
case skipTypes(n.sons[1].typ, abstractVar).kind
|
||||
of tyEnum, tyInt..tyInt64, tyChar: gen(p, n.sons[1], r)
|
||||
of tyEnum, tyInt..tyUInt64, tyChar: gen(p, n.sons[1], r)
|
||||
of tyBool: unaryExpr(p, n, r, "", "($1 ? 1:0)")
|
||||
else: internalError(n.info, "genOrd")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue