Permalink
Browse files

fixed stack empty function

  • Loading branch information...
1 parent c6d6539 commit 52420526726159700c2a03347037c2d469b9b10f @ohler55 committed May 17, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 ext/ox/attr.h
  2. +1 −1 ext/ox/helper.h
  3. +1 −1 ext/ox/sax_stack.h
View
@@ -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
View
@@ -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
View
@@ -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

0 comments on commit 5242052

Please sign in to comment.