Permalink
Browse files

fix for warning C4244 ..... possible loss of data under MSVC

  • Loading branch information...
1 parent 5977e20 commit 8144bf5e228eccabf5f0d4e5e8345c06a43c7e13 @herc4mac herc4mac committed Mar 28, 2012
Showing with 21 additions and 0 deletions.
  1. +7 −0 decNumber/decNumber.h
  2. +14 −0 decNumber_readme.txt
View
@@ -19,6 +19,13 @@
#if !defined(DECNUMBER)
#define DECNUMBER
+
+#if defined( _MSVC_ )
+ /* disable some MSVC compiler warnings */
+ /* for 64bits builds under WINDOWS 7 */
+ #pragma warning( disable: 4244 ) // "conversion from 'x' to 'y', possible loss of data"
+#endif
+
#define DECNAME "decNumber" /* Short name */
#define DECFULLNAME "Decimal Number Module" /* Verbose name */
#define DECAUTHOR "Mike Cowlishaw" /* Who to blame */
View
@@ -63,3 +63,17 @@ with
as applicable.
References to decCommon.c and decBasic.c in commentary should also be modified to refer to the corresponding .h.
+
+
+NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE
+
+decnumber.h has been modified to add ...
+
+#if defined( _MSVC_ )
+ /* disable some MSVC compiler warnings */
+ /* for 64bits builds under WINDOWS 7 */
+ #pragma warning( disable: 4244 ) // "conversion from 'x' to 'y', possible loss of data"
+#endif
+
+to get rid of a "show stopper" for 64bits MSVC builds
+

0 comments on commit 8144bf5

Please sign in to comment.