make tests green
This commit is contained in:
parent
3b43cff0f8
commit
c0b8a79315
3 changed files with 31 additions and 13 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue