From: lothar Date: Tue, 15 Sep 2009 13:34:37 +0000 (+0000) Subject: add missing () around && after || X-Git-Tag: v1.5.3~41 X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-redboot.git;a=commitdiff_plain;h=e808373601db07349699c2f1c956b002d86a4495;hp=ffd923d280a7f1e61bf86c6162e0b83acec83415;ds=sidebyside add missing () around && after || --- diff --git a/packages/language/c/libc/stdlib/v2_0/src/strtol.cxx b/packages/language/c/libc/stdlib/v2_0/src/strtol.cxx index d7f92cca..cc9564fc 100644 --- a/packages/language/c/libc/stdlib/v2_0/src/strtol.cxx +++ b/packages/language/c/libc/stdlib/v2_0/src/strtol.cxx @@ -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; diff --git a/packages/language/c/libc/stdlib/v2_0/src/strtoul.cxx b/packages/language/c/libc/stdlib/v2_0/src/strtoul.cxx index be2474d3..dff171f9 100644 --- a/packages/language/c/libc/stdlib/v2_0/src/strtoul.cxx +++ b/packages/language/c/libc/stdlib/v2_0/src/strtoul.cxx @@ -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;