]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/extended.c
Changed the "delete win" to the more proper "win->Destroy()" in
[wxWidgets.git] / src / common / extended.c
index d77950456dd9ab6f6b7af40e839ccb913f1cc0bf..a59607f14ca231daae2f29fcf978a99015e3c4d5 100644 (file)
@@ -1,7 +1,7 @@
 #include "wx/setup.h"
 #include <math.h>
 
-#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