summaryrefslogtreecommitdiffstats
path: root/4/10.c
diff options
context:
space:
mode:
authorSadeep Madurange <smadurange@users.noreply.github.com>2021-12-18 14:22:48 +0800
committerSadeep Madurange <smadurange@users.noreply.github.com>2021-12-18 14:22:48 +0800
commitd85198c87e33ab6a784e41733966e3f18011c681 (patch)
tree9c7908c26ce1f66eb1ef5a6a11f4a6896c2ed62d /4/10.c
parent97a013a143b5299c50dd2208e28cfcbb7179d0e1 (diff)
downloadk&r-exercises-d85198c87e33ab6a784e41733966e3f18011c681.tar.gz
4.10
Diffstat (limited to '4/10.c')
-rw-r--r--4/10.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/4/10.c b/4/10.c
index 1476640..6581724 100644
--- a/4/10.c
+++ b/4/10.c
@@ -31,7 +31,7 @@ int main(int argc, char *argv[]) {
printf("Press Ctrl+D to exit\n");
while (mgetline()) {
- while (type == getop(s) != 0) {
+ while ((type = getop(s)) != 0) {
switch (type) {
case NUM:
push(atof(s));