mirror of
https://github.com/louisrubet/rpn
synced 2024-12-30 10:23:32 +01:00
Debug test_and and test_or which did not consume their arguments
This commit is contained in:
parent
6df9fb0e9f
commit
bf341231e9
1 changed files with 6 additions and 2 deletions
|
@ -90,7 +90,9 @@ void test_and(void)
|
|||
ARG_IS_OF_TYPE(0, cmd_number);
|
||||
ARG_IS_OF_TYPE(1, cmd_number);
|
||||
|
||||
putf((getf() != 0) && (getf() != 0));
|
||||
floating_t first = getf();
|
||||
floating_t second = getf();
|
||||
putf((first != 0) && (second != 0));
|
||||
}
|
||||
|
||||
void test_or(void)
|
||||
|
@ -99,7 +101,9 @@ void test_or(void)
|
|||
ARG_IS_OF_TYPE(0, cmd_number);
|
||||
ARG_IS_OF_TYPE(1, cmd_number);
|
||||
|
||||
putf((getf() != 0) || (getf() != 0));
|
||||
floating_t first = getf();
|
||||
floating_t second = getf();
|
||||
putf((first != 0) || (second != 0));
|
||||
}
|
||||
|
||||
void test_xor(void)
|
||||
|
|
Loading…
Reference in a new issue