diff options
-rw-r--r-- | lib/pile.c | 4 | ||||
-rw-r--r-- | lib/polynom.c | 1 |
2 files changed, 2 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")); } - diff --git a/lib/polynom.c b/lib/polynom.c index aca2f6c..eaa690d 100644 --- a/lib/polynom.c +++ b/lib/polynom.c @@ -226,6 +226,7 @@ polynome ply_multiplication(polynome poly1, polynome poly2) polynome ply_division(polynome poly1, polynome poly2) { /* division de deux polynomes */ polynome result=NULL; + return result; |