fixes a bug encountered when running 'nim check posix_haiku.nim'
This commit is contained in:
parent
f50377986a
commit
15f54728ef
1 changed files with 1 additions and 1 deletions
|
|
@ -723,7 +723,7 @@ proc semRecordNodeAux(c: PContext, n: PNode, check: var IntSet, pos: var int,
|
|||
checkSonsLen(it, 2, c.config)
|
||||
if c.inGenericContext == 0:
|
||||
var e = semConstBoolExpr(c, it[0])
|
||||
if e.kind != nkIntLit: internalError(c.config, e.info, "semRecordNodeAux")
|
||||
if e.kind != nkIntLit: discard "don't report followup error"
|
||||
elif e.intVal != 0 and branch == nil: branch = it[1]
|
||||
else:
|
||||
it[0] = forceBool(c, semExprWithType(c, it[0]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue