diff options
Diffstat (limited to 'lib/pile.c')
-rw-r--r-- | lib/pile.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -16,7 +16,6 @@ #define _(x) x #endif -/* FIXME manque procedure vidage de pile en fin de prog */ pile_elem pile[PILE_MAX]; unsigned int pile_ptr = 0; @@ -109,7 +108,7 @@ pile_elem pop_pile(unsigned int count) { char buf[50]; - if ((int) (pile_ptr - count) >= 0) { + if (((int)(pile_ptr) - (int)count) >= 0) { pile_ptr -= count; } else { sprintf(buf, _("pop_pile: Can't pop %u elements"), count); @@ -359,4 +358,3 @@ void affichage_pile(void) { } printf(_("\t-- End Printing Stack\n")); } - |