]> git.saurik.com Git - wxWidgets.git/commitdiff
warning suppressed for MSVC++
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 17 Jan 1999 22:35:43 +0000 (22:35 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 17 Jan 1999 22:35:43 +0000 (22:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1419 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/extended.c

index bdf53ebb37e1d682f20b9a807917e86763a5833a..3bba986f4b6527e43210db6c81b6d29f19abdd57 100644 (file)
@@ -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++
 }
 
 /*