Commit 8229054
authored
Update stack.c
The else part in "if (c == '-')" for some reason caused a calculation like "33 44 +" to evaluate to 7. After removing that else part, the output gives the desired result.1 parent 933e245 commit 8229054
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
222 | 223 | | |
223 | 224 | | |
224 | 225 | | |
| |||
0 commit comments