Skip to content

Commit

Permalink
Merge pull request #8 from yamt/pqueue2-fix
Browse files Browse the repository at this point in the history
fix pqueue2:is_empty/1
  • Loading branch information
okeuday committed Aug 28, 2012
2 parents 3971b4a + 844dc8a commit 9c467db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pqueue2.erl
Expand Up @@ -107,8 +107,8 @@ in(Value, P, H) ->


is_empty(empty) -> is_empty(empty) ->
true; true;
is_empty({_, empty, empty, queue, Queue}) -> is_empty({_, HL, HR, queue, Queue}) ->
queue:is_empty(Queue); is_empty(HL) andalso is_empty(HR) andalso queue:is_empty(Queue);
is_empty(_) -> is_empty(_) ->
false. false.


Expand Down

0 comments on commit 9c467db

Please sign in to comment.