[lib][libc|libm] fix a few warnings in imported code

This commit is contained in:
Travis Geiselbrecht
2015-08-28 14:57:49 -07:00
parent 641530224d
commit f0a5c02e88
2 changed files with 3 additions and 3 deletions

View File

@@ -113,7 +113,7 @@ strtol(const char *nptr, char **endptr, int base)
if (any < 0)
continue;
if (neg) {
if (acc < cutoff || acc == cutoff && c > cutlim) {
if (acc < cutoff || (acc == cutoff && c > cutlim)) {
any = -1;
acc = LONG_MIN;
errno = ERANGE;
@@ -123,7 +123,7 @@ strtol(const char *nptr, char **endptr, int base)
acc -= c;
}
} else {
if (acc > cutoff || acc == cutoff && c > cutlim) {
if (acc > cutoff || (acc == cutoff && c > cutlim)) {
any = -1;
acc = LONG_MAX;
errno = ERANGE;

View File

@@ -2,7 +2,7 @@ LOCAL_DIR := $(GET_LOCAL_DIR)
MODULE := $(LOCAL_DIR)
MODULE_CFLAGS += -Wno-unused-variable -Wno-sign-compare
MODULE_CFLAGS += -Wno-unused-variable -Wno-sign-compare -Wno-parentheses
GLOBAL_INCLUDES += $(LOCAL_DIR)/include