small fixes

This commit is contained in:
prod2 2022-01-29 06:47:34 +01:00
parent 3ff351100e
commit d7f59f5ad7
2 changed files with 5 additions and 1 deletions

View File

@ -1,8 +1,12 @@
import ../types/hashtable
import ../types/ndstring
import ../types/stringutils
import strformat
proc equal*(l, r: string): bool =
l == r
proc testHashtables* =
var tbl = newTable[string, int]()

View File

@ -119,7 +119,7 @@ proc tableDelete*[U, V](tbl: Table[U, V], key: U): bool =
return false
let entry = findEntry(tbl.entries, tbl.cap, key)
if not entry[].entryStatus == esAlive:
if entry[].entryStatus != esAlive:
return false
entry[].entryStatus = esTombstone