summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/strtouq.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdlib/strtouq.c')
-rw-r--r--lib/libc/stdlib/strtouq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdlib/strtouq.c b/lib/libc/stdlib/strtouq.c
index 3ab2c232ddd..b872cf56f75 100644
--- a/lib/libc/stdlib/strtouq.c
+++ b/lib/libc/stdlib/strtouq.c
@@ -64,7 +64,7 @@ strtouq(nptr, endptr, base)
*/
s = nptr;
do {
- c = *s++;
+ c = (unsigned char) *s++;
} while (isspace(c));
if (c == '-') {
neg = 1;
@@ -85,7 +85,7 @@ strtouq(nptr, endptr, base)
cutoff = UQUAD_MAX / (u_quad_t)base;
cutlim = UQUAD_MAX % (u_quad_t)base;
- for (acc = 0, any = 0;; c = *s++) {
+ for (acc = 0, any = 0;; c = (unsigned char) *s++) {
if (isdigit(c))
c -= '0';
else if (isalpha(c))