Update of /cvsroot/cppunit/cppunit2/src/cpput
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2781/src/cpput
Modified Files:
properties.cpp
Log Message:
* added CPPTL_NO_INT64_TO_DOUBLE if compiler does not support conversion from int64 to double (vc6)
Index: properties.cpp
===================================================================
RCS file: /cvsroot/cppunit/cppunit2/src/cpput/properties.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** properties.cpp 27 Feb 2005 10:17:05 -0000 1.7
--- properties.cpp 4 Mar 2005 22:16:59 -0000 1.8
***************
*** 260,267 ****
--- 260,270 ----
case vtBoolean:
return guts_.boolValue_ ? 1.0 : 0.0;
+ // @todo implement "hand-made" conversion of int64 to double
+ #ifndef CPPTL_NO_INT64_TO_DOUBLE
case vtSignedInteger:
return (long double)(guts_.intValue_);
case vtUnsignedInteger:
return (long double)(guts_.uintValue_);
+ #endif
case vtReal:
return guts_.realValue_;
|