compiler bug fix unmasks coding error? (from torek)
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Sat, 1 Feb 1986 06:00:35 +0000 (22:00 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Sat, 1 Feb 1986 06:00:35 +0000 (22:00 -0800)
SCCS-vsn: usr.bin/find/find.c 4.17

usr/src/usr.bin/find/find.c

index 08376b3..2199f6b 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef        lint
 #ifndef        lint
-static char *sccsid = "@(#)find.c      4.16 (Berkeley) %G%";
+static char *sccsid = "@(#)find.c      4.17 (Berkeley) %G%";
 #endif
 
 #include <stdio.h>
 #endif
 
 #include <stdio.h>
@@ -714,7 +714,8 @@ register char *s, *p;
                                        return(0);
 
                        case '-':
                                        return(0);
 
                        case '-':
-                               k |= lc <= scc && scc <= (cc=p[1]);
+                               cc = p[1];
+                               k |= lc <= scc && scc <= cc;
                        }
                        if (scc==(lc=cc)) k++;
                }
                        }
                        if (scc==(lc=cc)) k++;
                }