diff options
Diffstat (limited to 'winsup/mingw/mingwex/strtoimax.c')
-rw-r--r-- | winsup/mingw/mingwex/strtoimax.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/mingw/mingwex/strtoimax.c b/winsup/mingw/mingwex/strtoimax.c index 0cf2c01ed..9072d4bbb 100644 --- a/winsup/mingw/mingwex/strtoimax.c +++ b/winsup/mingw/mingwex/strtoimax.c @@ -82,7 +82,7 @@ strtoimax(nptr, endptr, base) accum = n; for ( toobig = 0; n = ToNumber(*nptr), valid(n, base); ++nptr ) - if ( accum > INTMAX_MAX / base + 2 ) /* major wrap-around */ + if ( accum > (uintmax_t)(INTMAX_MAX / base + 2) ) /* major wrap-around */ toobig = 1; /* but keep scanning */ else accum = base * accum + n; |