aboutsummaryrefslogtreecommitdiff
path: root/7.5/main.c
diff options
context:
space:
mode:
authorsinanmohd <sinan@firemail.cc>2023-05-13 22:35:26 +0530
committersinanmohd <sinan@firemail.cc>2023-05-13 22:35:26 +0530
commit590c098937e0cfcce4531f86807b030ee345f990 (patch)
tree91d196912c30e4fd6d1f71aed49a05a44812f075 /7.5/main.c
parent563cea897121b33cc5e98dc6ed3a36eb39d52766 (diff)
7.5: v2 using more of sacnf
Diffstat (limited to '7.5/main.c')
-rw-r--r--7.5/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/7.5/main.c b/7.5/main.c
index cf5194e..b65b44d 100644
--- a/7.5/main.c
+++ b/7.5/main.c
@@ -11,7 +11,7 @@ int main(void)
int opd2;
int c;
- while ((c = getop(op, MAXOP))) {
+ while ((c = getop(op, MAXOP)) != EOF) {
switch (c) {
case NUM:
push(atof(op));