summary refs log tree commit diff stats
path: root/lib/pure/ropes.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-08-12 10:11:58 +0200
committerAraq <rumpf_a@web.de>2014-08-12 10:11:58 +0200
commit4d863ebb5e0dfc2531837925199a5d9cd6cdaab8 (patch)
tree2dd8dcf6a73447b074a9c615ecd37ed81c8b7c1c /lib/pure/ropes.nim
parentd1300de5e6ebcca1ef0a6fb0655160c2694f9571 (diff)
downloadNim-4d863ebb5e0dfc2531837925199a5d9cd6cdaab8.tar.gz
fix failed tests due to gcsafe
Diffstat (limited to 'lib/pure/ropes.nim')
-rw-r--r--lib/pure/ropes.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/ropes.nim b/lib/pure/ropes.nim
index 4a6c3f530..eb3792bce 100644
--- a/lib/pure/ropes.nim
+++ b/lib/pure/ropes.nim
@@ -58,8 +58,8 @@ proc newRope(data: string): PRope =
   result.data = data
 
 var 
-  cache: PRope                # the root of the cache tree
-  N: PRope                    # dummy rope needed for splay algorithm
+  cache {.threadvar.}: PRope     # the root of the cache tree
+  N {.threadvar.}: PRope         # dummy rope needed for splay algorithm
 
 when countCacheMisses:
   var misses, hits: int