You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@locus.apache.org on 2000/09/28 21:29:19 UTC
cvs commit: xml-xalan/c/src/PlatformSupport DoubleSupport.hpp
dbertoni 00/09/28 12:29:18
Modified: c/src/PlatformSupport DoubleSupport.hpp
Log:
Added ifdef for old-style cast.
Revision Changes Path
1.7 +4 -0 xml-xalan/c/src/PlatformSupport/DoubleSupport.hpp
Index: DoubleSupport.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/DoubleSupport.hpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- DoubleSupport.hpp 2000/09/27 16:23:59 1.6
+++ DoubleSupport.hpp 2000/09/28 19:29:16 1.7
@@ -93,7 +93,11 @@
{
// Compare the two DWORDs of the double as unsigned longs.
const unsigned long* const theFirstDWORD =
+#if defined(XALAN_OLD_STYLE_CASTS)
+ (const unsigned long*)&theNumber;
+#else
reinterpret_cast<const unsigned long*>(&theNumber);
+#endif
const unsigned long* const theSecondDWORD =
theFirstDWORD + 1;