don't mess with semfold, use vars instead

This commit is contained in:
Simon Hafner 2013-09-26 15:10:54 -05:00
commit ab31ad2704
2 changed files with 2 additions and 3 deletions

View file

@ -315,7 +315,6 @@ proc evalOp(m: TMagic, n, a, b, c: PNode): PNode =
of mLtStr: result = newIntNodeT(ord(getStr(a) < getStr(b)), n)
of mLeStr: result = newIntNodeT(ord(getStr(a) <= getStr(b)), n)
of mEqStr: result = newIntNodeT(ord(getStr(a) == getStr(b)), n)
of mEqCString: result = newIntNodeT(ord(getStr(a) == getStr(b)), n)
of mLtU, mLtU64:
result = newIntNodeT(ord(`<%`(getOrdValue(a), getOrdValue(b))), n)
of mLeU, mLeU64:

View file

@ -5,6 +5,6 @@ discard """
# This file tests some magic
const foo = cstring("foo")
const bar = cstring("foo")
var foo = cstring("foo")
var bar = cstring("foo")
echo(foo == bar)