[Cppunit-cvs] cppunit2/src/cpputtest valuetest.cpp,1.1,1.2
Brought to you by:
blep
From: Baptiste L. <bl...@us...> - 2008-07-13 08:16:08
|
Update of /cvsroot/cppunit/cppunit2/src/cpputtest In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv15347 Modified Files: valuetest.cpp Log Message: - Made min/max int initialization more portable. Index: valuetest.cpp =================================================================== RCS file: /cvsroot/cppunit/cppunit2/src/cpputtest/valuetest.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** valuetest.cpp 19 Aug 2007 20:13:24 -0000 1.1 --- valuetest.cpp 13 Jul 2008 08:16:05 -0000 1.2 *************** *** 4,9 **** ValueTest::ValueTest() ! : maxInt_( 0x7ffffff ) ! , minInt_( ~(unsigned int(-1)/2) ) { } --- 4,9 ---- ValueTest::ValueTest() ! : maxInt_( ((unsigned int)~0)/2 ) ! , minInt_( ~((unsigned int)(~0)/2) ) { } |