don't mess with semfold, use vars instead
This commit is contained in:
parent
becd55dced
commit
ab31ad2704
2 changed files with 2 additions and 3 deletions
|
|
@ -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 mLtStr: result = newIntNodeT(ord(getStr(a) < getStr(b)), n)
|
||||||
of mLeStr: 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 mEqStr: result = newIntNodeT(ord(getStr(a) == getStr(b)), n)
|
||||||
of mEqCString: result = newIntNodeT(ord(getStr(a) == getStr(b)), n)
|
|
||||||
of mLtU, mLtU64:
|
of mLtU, mLtU64:
|
||||||
result = newIntNodeT(ord(`<%`(getOrdValue(a), getOrdValue(b))), n)
|
result = newIntNodeT(ord(`<%`(getOrdValue(a), getOrdValue(b))), n)
|
||||||
of mLeU, mLeU64:
|
of mLeU, mLeU64:
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,6 @@ discard """
|
||||||
|
|
||||||
# This file tests some magic
|
# This file tests some magic
|
||||||
|
|
||||||
const foo = cstring("foo")
|
var foo = cstring("foo")
|
||||||
const bar = cstring("foo")
|
var bar = cstring("foo")
|
||||||
echo(foo == bar)
|
echo(foo == bar)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue