Skip to content

Commit

Permalink
Fixed stupid loop bug in rbdict.erl.
Browse files Browse the repository at this point in the history
  • Loading branch information
rvirding committed May 7, 2009
1 parent c63b1a7 commit 45c9be4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
Binary file modified ebin/rbdict.beam
Binary file not shown.
Binary file modified ebin/rbdict1.beam
Binary file not shown.
Binary file modified ebin/rbsets.beam
Binary file not shown.
8 changes: 8 additions & 0 deletions src/ChangeLog
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
2009-05-08 Robert Virding <rv@arthur>

* rbdict.erl (find): Fixed loop bug.

2009-05-07 Robert Virding <rv@arthur>

* rbdict.erl, rbsets.erl: Initial release.

2 changes: 1 addition & 1 deletion src/rbdict.erl
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ find(_, empty) -> error;
find(K, {_,Left,K1,_,_}) when K < K1 ->
find(K, Left);
find(K, {_,_,K1,_,Right}) when K > K1 ->
fetch(K, Right);
find(K, Right);
find(_, {_,_,_,Val,_}) -> {ok,Val}.

%% fetch_keys(Dict) -> [Key].
Expand Down

0 comments on commit 45c9be4

Please sign in to comment.