Get rid of some warnings
* mingwex/dirent.c (_topendir): Eliminate signed/unsigned warning. * mingwex/strtoimax.c (strtoimax): Likewise. * mingwex/wcstoimax.c (wcstoimax): Likewise. * mingwex/wtoll.c (wtoll): Remove unnecessary ';' * mingwex/fesentenv.c: Include float.h. * mingwex/math/powl.c: Eliminate type punning/strict aliasing warning. * mingwex/math/tanhl.c: Eliminate signed/unsigned warning in constants. * mingwex/math/tgammal.c: Likewise.
This commit is contained in:
@@ -89,7 +89,7 @@ wcstoimax(nptr, endptr, base)
|
||||
accum = n;
|
||||
|
||||
for ( toobig = 0; n = ToWNumber(*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;
|
||||
|
Reference in New Issue
Block a user