summary refs log tree commit diff stats
path: root/compiler/ccgexprs.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-01-08 17:23:52 +0100
committerAraq <rumpf_a@web.de>2013-01-08 17:23:52 +0100
commit20a5e37169669702868341ed6e3266372cab9eba (patch)
treecdefa20b8bf635a16aa82fab29af24d792113f31 /compiler/ccgexprs.nim
parentf280ed1560b3b95bfe7fdea0c74b6e6a012a91dc (diff)
downloadNim-20a5e37169669702868341ed6e3266372cab9eba.tar.gz
fixes #270
Diffstat (limited to 'compiler/ccgexprs.nim')
-rwxr-xr-xcompiler/ccgexprs.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim
index cb0dcfe00..26144c152 100755
--- a/compiler/ccgexprs.nim
+++ b/compiler/ccgexprs.nim
@@ -1648,7 +1648,7 @@ proc downConv(p: BProc, n: PNode, d: var TLoc) =
     initLocExpr(p, n.sons[0], a)
     var r = rdLoc(a)
     if skipTypes(n.sons[0].typ, abstractInst).kind in {tyRef, tyPtr, tyVar} and
-        n.sons[0].kind notin {nkHiddenAddr, nkAddr}:
+        n.sons[0].kind notin {nkHiddenAddr, nkAddr, nkObjDownConv}:
       app(r, "->Sup")
       for i in countup(2, abs(inheritanceDiff(dest, src))): app(r, ".Sup")
       r = con("&", r)