diff options
author | Zahary Karadjov <zahary@gmail.com> | 2012-04-12 14:12:32 +0300 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2012-04-12 14:12:32 +0300 |
commit | d2b45dbe8514c615e54cdb61808b90913deec4e1 (patch) | |
tree | 09578ca9d8679e00d43fdbaa68f075c3c2a6e1e1 /compiler/ccgmerge.nim | |
parent | 238202ccbc418dece73086f0d009b2b6fe3850ca (diff) | |
download | Nim-d2b45dbe8514c615e54cdb61808b90913deec4e1.tar.gz |
C variables are created in their enclosing block instead of their enclosing function
Diffstat (limited to 'compiler/ccgmerge.nim')
-rw-r--r-- | compiler/ccgmerge.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/ccgmerge.nim b/compiler/ccgmerge.nim index 36d1417a6..45463a397 100644 --- a/compiler/ccgmerge.nim +++ b/compiler/ccgmerge.nim @@ -280,7 +280,7 @@ proc mergeRequired*(m: BModule): bool = #echo "not empty: ", i, " ", ropeToStr(m.s[i]) return true for i in low(TCProcSection)..high(TCProcSection): - if m.initProc.s[i] != nil: + if m.initProc.s(i) != nil: #echo "not empty: ", i, " ", ropeToStr(m.initProc.s[i]) return true @@ -292,5 +292,5 @@ proc mergeFiles*(cfilename: string, m: BModule) = for i in low(TCFileSection)..high(TCFileSection): m.s[i] = con(old.f[i], m.s[i]) for i in low(TCProcSection)..high(TCProcSection): - m.initProc.s[i] = con(old.p[i], m.initProc.s[i]) + m.initProc.s(i) = con(old.p[i], m.initProc.s(i)) |