small fixes
This commit is contained in:
parent
3ff351100e
commit
d7f59f5ad7
|
@ -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]()
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue