Skip to content

Commit

Permalink
Revert message change relative to uptream ctable
Browse files Browse the repository at this point in the history
* src/lib/ctable.lua (CTable): Revert ctable change relative to
  upstream.
  • Loading branch information
wingo committed Oct 17, 2016
1 parent ccd015e commit 4b8930d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/lib/ctable.lua
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,9 @@ end
function CTable:remove_ptr(entry)
local scale = self.scale
local index = entry - self.entries
assert(index >= 0, "Ctab: index must be >= 0.")
assert(index <= self.size + self.max_displacement,
string.format("Ctab: bad index %s, should be at most %s.",
index, self.size + self.max_displacement))
assert(entry.hash ~= HASH_MAX, "Ctab: entry hash must not be HASH_MAX.")
assert(index >= 0)
assert(index <= self.size + self.max_displacement)
assert(entry.hash ~= HASH_MAX)

self.occupancy = self.occupancy - 1
entry.hash = HASH_MAX
Expand Down

0 comments on commit 4b8930d

Please sign in to comment.