summary refs log tree commit diff stats
path: root/lib/system.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-08-20 01:01:46 +0200
committerAraq <rumpf_a@web.de>2011-08-20 01:01:46 +0200
commitdd190a5c01ed904d844584074f729ee9cd677a3e (patch)
tree8b942abeda654d4fad2ca476fbb7d78e140012b6 /lib/system.nim
parentd560e84fcc1171164073a31797649c26a54b03e1 (diff)
downloadNim-dd190a5c01ed904d844584074f729ee9cd677a3e.tar.gz
more occurences of 'pure' proc pragma fixed
Diffstat (limited to 'lib/system.nim')
-rwxr-xr-xlib/system.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system.nim b/lib/system.nim
index ace36bcc9..1d8d18e1f 100755
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -1248,7 +1248,7 @@ when not defined(NimrodVM):
     proc seqToPtr[T](x: seq[T]): pointer {.inline, nosideeffect.} =
       result = cast[pointer](x)
   else:
-    proc seqToPtr[T](x: seq[T]): pointer {.pure, nosideeffect.} =
+    proc seqToPtr[T](x: seq[T]): pointer {.noStackFrame, nosideeffect.} =
       asm """return `x`"""
   
   proc `==` *[T: typeDesc](x, y: seq[T]): bool {.noSideEffect.} =
@@ -1481,7 +1481,7 @@ when not defined(ECMAScript):
       inc(i)
   {.pop.}
 else:
-  proc add*(x: var string, y: cstring) {.pure.} =
+  proc add*(x: var string, y: cstring) {.noStackFrame.} =
     asm """
       var len = `x`[0].length-1;
       for (var i = 0; i < `y`.length; ++i) {