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:
Danny Smith
2003-03-17 01:03:43 +00:00
parent 9bd09d45f0
commit 48051a71ce
9 changed files with 34 additions and 11 deletions

View File

@@ -269,8 +269,17 @@ static const unsigned short R[] = {
#else
#define MNEXP (-NXT*16384.0L)
#endif
static const unsigned short L[] = {0xc2ef,0x705f,0xeca5,0xe2a8,0x3ffd, XPD};
#define LOG2EA (*(long double *)(&L[0]))
static const
union
{
unsigned short L[6];
long double ld;
} log2ea = {{0xc2ef,0x705f,0xeca5,0xe2a8,0x3ffd, XPD}};
#define LOG2EA (log2ea.ld)
/*
#define LOG2EA 0.44269504088896340735992L
*/
#endif
#ifdef MIEEE