summary refs log tree commit diff stats
path: root/lib/pure/collections/tables.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-01-17 01:18:57 +0100
committerAraq <rumpf_a@web.de>2014-01-17 01:18:57 +0100
commitfc452787e7bba3301642c012fe8e2cdea243993b (patch)
tree07356b86db49e3d3f7afcc265c1089dfd61469b9 /lib/pure/collections/tables.nim
parenta1713bc2f95ddfa6b042315196607f7d5a01d135 (diff)
downloadNim-fc452787e7bba3301642c012fe8e2cdea243993b.tar.gz
better html generator for the tester; fixes some VM bugs
Diffstat (limited to 'lib/pure/collections/tables.nim')
-rw-r--r--lib/pure/collections/tables.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/collections/tables.nim b/lib/pure/collections/tables.nim
index 4b9e8af0e..73da274b9 100644
--- a/lib/pure/collections/tables.nim
+++ b/lib/pure/collections/tables.nim
@@ -153,7 +153,7 @@ proc add*[A, B](t: var TTable[A, B], key: A, val: B) =
   
 proc del*[A, B](t: var TTable[A, B], key: A) =
   ## deletes `key` from hash table `t`.
-  var index = rawGet(t, key)
+  let index = rawGet(t, key)
   if index >= 0:
     t.data[index].slot = seDeleted
     dec(t.counter)