summary refs log tree commit diff stats
path: root/lib/system.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-07-22 11:10:44 +0200
committerAndreas Rumpf <rumpf_a@web.de>2017-07-22 11:10:52 +0200
commitad608838bf8c6300cb0c62338c4e95c8d2afbeec (patch)
tree17dc5c273b2cf93d2e5778bb3ce62772c4c55eb6 /lib/system.nim
parent1f13e94dd0bbef5e411eabdce93314f39d1b6394 (diff)
downloadNim-ad608838bf8c6300cb0c62338c4e95c8d2afbeec.tar.gz
closures have an object type field so that we can perform correct deepCopy() for the BoehmGC target
Diffstat (limited to 'lib/system.nim')
-rw-r--r--lib/system.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 8f653c1e0..d62c0424e 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -413,7 +413,7 @@ type
     ## is an int type ranging from one to the maximum value
     ## of an int. This type is often useful for documentation and debugging.
 
-  RootObj* {.exportc: "TNimObject", inheritable.} =
+  RootObj* {.compilerProc, inheritable.} =
     object ## the root of Nim's object hierarchy. Objects should
            ## inherit from RootObj or one of its descendants. However,
            ## objects that have no ancestor are allowed.
@@ -3269,7 +3269,7 @@ when not defined(JS): #and not defined(nimscript):
     proc finished*[T: proc](x: T): bool {.noSideEffect, inline.} =
       ## can be used to determine if a first class iterator has finished.
       {.emit: """
-      `result` = *((NI*) `x`.ClE_0) < 0;
+      `result` = ((NI*) `x`.ClE_0)[1] < 0;
       """.}
 
 elif defined(JS):