minor tweaks; updated todo.txt

This commit is contained in:
Araq
2014-04-25 19:54:42 +02:00
parent e6675bd8b2
commit fab8cee13d
5 changed files with 16 additions and 17 deletions

View File

@@ -380,6 +380,7 @@ proc evalOp(m: TMagic, n, a, b, c: PNode): PNode =
of mInSet: result = newIntNodeT(ord(inSet(a, b)), n)
of mRepr:
# BUGFIX: we cannot eval mRepr here for reasons that I forgot.
discard
of mIntToStr, mInt64ToStr: result = newStrNodeT($(getOrdValue(a)), n)
of mBoolToStr:
if getOrdValue(a) == 0: result = newStrNodeT("false", n)