projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
"wx/xxx.h" --> <wx/xxx.h>
[wxWidgets.git]
/
src
/
common
/
extended.c
diff --git
a/src/common/extended.c
b/src/common/extended.c
index bdf53ebb37e1d682f20b9a807917e86763a5833a..1dae07e953a493a7911a39ac9911222b22f0f222 100644
(file)
--- 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;
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;
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++ */
}
/*
}
/*