Debug test_and and test_or which did not consume their arguments

This commit is contained in:
Louis RUBET 2014-09-05 10:42:09 +02:00
parent 6df9fb0e9f
commit bf341231e9

View file

@ -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)