Skip to content

Commit

Permalink
fixed stack empty function
Browse files Browse the repository at this point in the history
  • Loading branch information
ohler55 committed May 17, 2013
1 parent c6d6539 commit 5242052
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ext/ox/attr.h
Expand Up @@ -57,7 +57,7 @@ attr_stack_init(AttrStack stack) {

inline static int
attr_stack_empty(AttrStack stack) {
return (stack->head == stack->base);
return (stack->head == stack->tail);
}

inline static void
Expand Down
2 changes: 1 addition & 1 deletion ext/ox/helper.h
Expand Up @@ -57,7 +57,7 @@ helper_stack_init(HelperStack stack) {

inline static int
helper_stack_empty(HelperStack stack) {
return (stack->head == stack->base);
return (stack->head == stack->tail);
}

inline static void
Expand Down
2 changes: 1 addition & 1 deletion ext/ox/sax_stack.h
Expand Up @@ -57,7 +57,7 @@ stack_init(NStack stack) {

inline static int
stack_empty(NStack stack) {
return (stack->head == stack->base);
return (stack->head == stack->tail);
}

inline static void
Expand Down

0 comments on commit 5242052

Please sign in to comment.