summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-01-29 19:12:48 +0100
committerAraq <rumpf_a@web.de>2012-01-29 19:12:48 +0100
commit4b952336325121be20557ecfb224a10dcaab49d0 (patch)
treee17bf3b0f1647107dae003818a2a2263748a1671 /compiler
parent1ba3dbc7595a40bdb68973d0863c904657ca28f6 (diff)
downloadNim-4b952336325121be20557ecfb224a10dcaab49d0.tar.gz
fixes #98
Diffstat (limited to 'compiler')
-rwxr-xr-xcompiler/cgen.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/cgen.nim b/compiler/cgen.nim
index 5de2481ed..eb3e58a98 100755
--- a/compiler/cgen.nim
+++ b/compiler/cgen.nim
@@ -641,7 +641,7 @@ proc genProcPrototype(m: BModule, sym: PSym) =
   useHeader(m, sym)
   if lfNoDecl in sym.loc.Flags: return 
   if lfDynamicLib in sym.loc.Flags:
-    if sym.owner.id != m.module.id and
+    if getModule(sym).id != m.module.id and
         not ContainsOrIncl(m.declaredThings, sym.id): 
       appf(m.s[cfsVars], "extern $1 $2;$n", 
            [getTypeDesc(m, sym.loc.t), mangleDynLibProc(sym)])