diff options
author | EXetoC <exetoc@gmail.com> | 2014-04-20 23:03:31 +0200 |
---|---|---|
committer | EXetoC <exetoc@gmail.com> | 2014-04-20 23:03:31 +0200 |
commit | 171f4a21e8b2180cfeb4dcdb0ebde95f73b3dec3 (patch) | |
tree | 6a1be98235e5759050625ffaeb3928f93cd31b8e | |
parent | be6474af638b72aabeb70cfc5f477cc5fb7af0ce (diff) | |
download | Nim-171f4a21e8b2180cfeb4dcdb0ebde95f73b3dec3.tar.gz |
Fix spawn ICE on invalid argument.
-rw-r--r-- | compiler/semfold.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semfold.nim b/compiler/semfold.nim index caaab2291..79abfaf4d 100644 --- a/compiler/semfold.nim +++ b/compiler/semfold.nim @@ -404,7 +404,7 @@ proc evalOp(m: TMagic, n, a, b, c: PNode): PNode = mExit, mInc, ast.mDec, mEcho, mSwap, mAppendStrCh, mAppendStrStr, mAppendSeqElem, mSetLengthStr, mSetLengthSeq, mParseExprToAst, mParseStmtToAst, mExpandToAst, mTypeTrait, - mNLen..mNError, mEqRef, mSlurp, mStaticExec, mNGenSym: + mNLen..mNError, mEqRef, mSlurp, mStaticExec, mNGenSym, mSpawn: discard of mRand: result = newIntNodeT(math.random(a.getInt.int), n) |