make tests green

This commit is contained in:
Araq 2016-11-03 14:52:47 +01:00
commit c0b8a79315
3 changed files with 31 additions and 13 deletions

View file

@ -108,7 +108,7 @@ proc rawGet(t: StringTableRef, key: string): int =
h = nextTry(h, high(t.data))
result = - 1
template get(t: StringTableRef, key: string): stmt {.immediate.} =
template get(t: StringTableRef, key: string) =
var index = rawGet(t, key)
if index >= 0: result = t.data[index].val
else: