summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbiouman <biouman>2001-04-30 01:28:54 +0000
committerbiouman <biouman>2001-04-30 01:28:54 +0000
commit96ce5e4e35c13d86f0154b23eb256c2acbcbd705 (patch)
tree53cb31eb788c6c663974b71d768797681d136660
parent51a7864b4b789583ea445af47324a9b613336162 (diff)
*** empty log message ***
-rw-r--r--lib/pile.c4
-rw-r--r--lib/polynom.c1
2 files changed, 2 insertions, 3 deletions
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"));
}
-
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;