commit d885e0cd0c382fef04f3eecedb917bdc11e7ee62
parent 0963fd63567ab65f6abb373952cf9823321a837e
Author: Louis Burda <quent.burda@gmail.com>
Date: Sun, 25 Sep 2022 18:07:15 +0200
Fix output commands
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pietr.c b/pietr.c
@@ -334,11 +334,11 @@ main(int argc, const char **argv)
break;
case OUTN:
ASSERTI(OUTN, stacktop >= 1);
- printf("%i", stack[stacktop--]);
+ printf("%i", stack[--stacktop]);
break;
case OUTC:
ASSERTI(OUTC, stacktop >= 1);
- putchar(stack[stacktop--]);
+ putchar(stack[--stacktop]);
break;
case NONE:
break;