tcsh: fix warning to keep compiling with WARNS=2
authorSimon 'corecode' Schubert <corecode@fs.ei.tum.de>
Wed, 30 Sep 2009 13:55:28 +0000 (15:55 +0200)
committerSimon 'corecode' Schubert <corecode@fs.ei.tum.de>
Wed, 30 Sep 2009 13:55:28 +0000 (15:55 +0200)
contrib/tcsh-6/sh.dol.c

index bafb971..1b9a31d 100644 (file)
@@ -625,7 +625,7 @@ Dgetdol(void)
 
            for (i = 0; Isdigit(*np); i = i * 10 + *np++ - '0')
                continue;
-           if (i < 0 || i > upb && !any("-*", *np)) {
+           if (i < 0 || (i > upb && !any("-*", *np))) {
                cleanup_until(name);
                dolerror(vp->v_name);
                return;