X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/44c4a3348693414bace13852e50d926c1aa9f08b..574c0bbfbd2096f7ee0d10ad7222bb012e6f5ad7:/src/common/extended.c?ds=sidebyside diff --git a/src/common/extended.c b/src/common/extended.c index bdf53ebb37..3bba986f4b 100644 --- a/src/common/extended.c +++ b/src/common/extended.c @@ -82,6 +82,11 @@ void ConvertToIeeeExtended(double num, unsigned char *bytes) } } + // disable the warning about 'possible loss of data' + #ifdef _MSC_VER + #pragma warning(disable: 4244) + #endif // Visual C++ + bytes[0] = expon >> 8; bytes[1] = expon; bytes[2] = (unsigned char) hiMant >> 24; @@ -92,6 +97,10 @@ void ConvertToIeeeExtended(double num, unsigned char *bytes) bytes[7] = (unsigned char) loMant >> 16; bytes[8] = (unsigned char) loMant >> 8; bytes[9] = (unsigned char) loMant; + + #ifdef _MSC_VER + #pragma warning(default: 4244) + #endif // Visual C++ } /*