fixes a critical tables bug that caused 'enlarge' to crash after 'add'

This commit is contained in:
Andreas Rumpf 2016-09-05 08:51:38 +02:00
commit 4077050a42
3 changed files with 30 additions and 11 deletions

View file

@ -0,0 +1,13 @@
discard """
output: '''done'''
"""
import tables
proc main =
var tab = newTable[string, string]()
for i in 0..1000:
tab.add "key", "value " & $i
main()
echo "done"