X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8c46af496abe3f35b44f599fd120394a269bc09a..50c319beec2454b4f669b6c8cf3d089f53c979f6:/src/common/extended.c diff --git a/src/common/extended.c b/src/common/extended.c index d77950456d..a59607f14c 100644 --- a/src/common/extended.c +++ b/src/common/extended.c @@ -1,7 +1,7 @@ #include "wx/setup.h" #include -#if USE_APPLE_IEEE +#if wxUSE_APPLE_IEEE /* * C O N V E R T T O I E E E E X T E N D E D @@ -84,14 +84,14 @@ void ConvertToIeeeExtended(double num, unsigned char *bytes) bytes[0] = expon >> 8; bytes[1] = expon; - bytes[2] = hiMant >> 24; - bytes[3] = hiMant >> 16; - bytes[4] = hiMant >> 8; - bytes[5] = hiMant; - bytes[6] = loMant >> 24; - bytes[7] = loMant >> 16; - bytes[8] = loMant >> 8; - bytes[9] = loMant; + bytes[2] = (unsigned char) hiMant >> 24; + bytes[3] = (unsigned char) hiMant >> 16; + bytes[4] = (unsigned char) hiMant >> 8; + bytes[5] = (unsigned char) hiMant; + bytes[6] = (unsigned char) loMant >> 24; + bytes[7] = (unsigned char) loMant >> 16; + bytes[8] = (unsigned char) loMant >> 8; + bytes[9] = (unsigned char) loMant; } /* @@ -176,4 +176,4 @@ double ConvertFromIeeeExtended(const unsigned char *bytes) return f; } -#endif +#endif // wxUSE_APPLE_IEEE