diff options
author | Araq <rumpf_a@web.de> | 2014-04-21 00:04:36 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-04-21 00:04:36 +0200 |
commit | 472190bedc96dfa33b5979746f815feaa1555ac8 (patch) | |
tree | bbed36abde0f1b30f771b3bb20d9ea10e33b999b | |
parent | 36fc1d9d72b91a632b795b656a5ead52b472036f (diff) | |
download | Nim-472190bedc96dfa33b5979746f815feaa1555ac8.tar.gz |
fixes #1085
-rw-r--r-- | compiler/vm.nim | 2 | ||||
-rw-r--r-- | lib/core/macros.nim | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/vm.nim b/compiler/vm.nim index fb8749250..1365abb86 100644 --- a/compiler/vm.nim +++ b/compiler/vm.nim @@ -969,7 +969,7 @@ proc rawExecute(c: PCtx, start: int, tos: PStackFrame): TFullReg = of opcRepr: decodeB(rkNode) createStr regs[ra] - regs[ra].node.strVal = renderTree(regs[rb].node, {renderNoComments}) + regs[ra].node.strVal = renderTree(regs[rb].regToNode, {renderNoComments}) of opcQuit: if c.mode in {emRepl, emStaticExpr, emStaticStmt}: message(c.debug[pc], hintQuitCalled) diff --git a/lib/core/macros.nim b/lib/core/macros.nim index 09dc341df..334a4b8c7 100644 --- a/lib/core/macros.nim +++ b/lib/core/macros.nim @@ -301,7 +301,7 @@ proc expectKind*(n: PNimrodNode, k: TNimrodNodeKind) {.compileTime.} = ## checks that `n` is of kind `k`. If this is not the case, ## compilation aborts with an error message. This is useful for writing ## macros that check the AST that is passed to them. - if n.kind != k: error("macro expects a node of kind: " & repr(k)) + if n.kind != k: error("macro expects a node of kind: " & $k) proc expectMinLen*(n: PNimrodNode, min: int) {.compileTime.} = ## checks that `n` has at least `min` children. If this is not the case, |