From e808373601db07349699c2f1c956b002d86a4495 Mon Sep 17 00:00:00 2001 From: lothar Date: Tue, 15 Sep 2009 13:34:37 +0000 Subject: [PATCH 1/1] add missing () around && after || --- packages/language/c/libc/stdlib/v2_0/src/strtol.cxx | 2 +- packages/language/c/libc/stdlib/v2_0/src/strtoul.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2