From b40f003fb068cc34c72b115ce80e27c4429681a0 Mon Sep 17 00:00:00 2001 From: "Janet B. Anderson" Date: Wed, 2 Feb 2000 23:08:18 +0000 Subject: [PATCH] Fixed test stmnt errors in previous commit. --- src/libCom/calc/sCalcPostfix.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libCom/calc/sCalcPostfix.c b/src/libCom/calc/sCalcPostfix.c index 6a3f1e18e..7bef588e2 100644 --- a/src/libCom/calc/sCalcPostfix.c +++ b/src/libCom/calc/sCalcPostfix.c @@ -489,7 +489,7 @@ long epicsShareAPI sCalcPostfix(char *pinfix, char **pp_postfix, short *perror) } /* add operators of higher or equal priority to postfix expression */ - while ( (pstacktop >= &stack[1])) && + while ( (pstacktop >= &stack[1]) && (pstacktop->in_stack_pri >= pelement->in_coming_pri)) { *ppostfix++ = pstacktop->code; pstacktop--; @@ -509,7 +509,7 @@ long epicsShareAPI sCalcPostfix(char *pinfix, char **pp_postfix, short *perror) } /* add operators of higher or equal priority to postfix expression */ - while ( (pstacktop >= &stack[1])) && + while ( (pstacktop >= &stack[1]) && (pstacktop->in_stack_pri >= pelement->in_coming_pri)) { *ppostfix++ = pstacktop->code; pstacktop--; @@ -538,7 +538,7 @@ long epicsShareAPI sCalcPostfix(char *pinfix, char **pp_postfix, short *perror) } /* add operators of higher or equal priority to postfix expression */ - while ( (pstacktop >= &stack[1])) && + while ( (pstacktop >= &stack[1]) && (pstacktop->in_stack_pri >= in_coming_pri)) { *ppostfix++ = pstacktop->code; pstacktop--; @@ -644,7 +644,7 @@ long epicsShareAPI sCalcPostfix(char *pinfix, char **pp_postfix, short *perror) } /* add operators of higher priority to postfix expression */ - while ( (pstacktop >= &stack[1])) && + while ( (pstacktop >= &stack[1]) && (pstacktop->in_stack_pri > pelement->in_coming_pri)) { *ppostfix++ = pstacktop->code; pstacktop--;