]> git.kernelconcepts.de Git - karo-tx-redboot.git/commitdiff
add missing () around && after ||
authorlothar <lothar>
Tue, 15 Sep 2009 13:34:37 +0000 (13:34 +0000)
committerlothar <lothar>
Tue, 15 Sep 2009 13:34:37 +0000 (13:34 +0000)
packages/language/c/libc/stdlib/v2_0/src/strtol.cxx
packages/language/c/libc/stdlib/v2_0/src/strtoul.cxx

index d7f92ccacfa00f56d7b258eb0751ea26294bc248..cc9564fc164481692a5c47439051dfc66756b37f 100644 (file)
@@ -179,7 +179,7 @@ strtol( const char *nptr, char **endptr, int base )
             break;
         if (c >= base)
             break;
-        if (any < 0 || acc > cutoff || acc == cutoff && c > cutlim)
+        if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim))
             any = -1;
         else {
             any = 1;
index be2474d3500844d3a478d89647b59e08a1fba8a5..dff171f9a3012fc0af3a28151dee4e83f20098d8 100644 (file)
@@ -155,7 +155,7 @@ strtoul( const char *nptr, char **endptr, int base )
             break;
         if (c >= base)
             break;
-        if (any < 0 || acc > cutoff || acc == cutoff && c > cutlim)
+        if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim))
             any = -1;
         else {
             any = 1;