From 96ce5e4e35c13d86f0154b23eb256c2acbcbd705 Mon Sep 17 00:00:00 2001 From: biouman Date: Mon, 30 Apr 2001 01:28:54 +0000 Subject: *** empty log message *** --- lib/pile.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/pile.c') diff --git a/lib/pile.c b/lib/pile.c index 4e510b3..40ecf76 100644 --- a/lib/pile.c +++ b/lib/pile.c @@ -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")); } - -- cgit v1.2.3