summaryrefslogtreecommitdiffstats
path: root/4/10.c
diff options
context:
space:
mode:
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));