Skip to content

Commit

Permalink
off-by-one error
Browse files Browse the repository at this point in the history
  • Loading branch information
doligez committed Jan 29, 2008
1 parent ece2aef commit ecf6256
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/weak.ml
Expand Up @@ -149,7 +149,7 @@ module Make (H : Hashtbl.HashedType) : (S with type data = H.t) = struct
let live = count_bucket 0 bucket 0 in
if live <= prev_len then begin
let rec loop i j =
if j > prev_len then begin
if j >= prev_len then begin
if check bucket i then loop (i + 1) j
else if check bucket j then begin
blit bucket j bucket i 1;
Expand Down

0 comments on commit ecf6256

Please sign in to comment.