From: stephan b. <sg...@us...> - 2005-01-23 01:13:31
|
Update of /cvsroot/pclasses/pclasses2/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15123 Modified Files: Date.cpp Log Message: added a cast to avoid a warning "comp between unsigned/signed" Index: Date.cpp =================================================================== RCS file: /cvsroot/pclasses/pclasses2/src/Date.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- Date.cpp 19 Jan 2005 23:31:01 -0000 1.4 +++ Date.cpp 23 Jan 2005 01:13:20 -0000 1.5 @@ -173,8 +173,8 @@ Date& Date::operator+=(const TimeSpan& sp) throw() { - int tmp = (int)_day + sp.days(); - while ( tmp && tmp > daysInMonth(_month, _year) ) + int tmp = (int)_day + sp.days(); + while ( tmp && tmp > (int)daysInMonth(_month, _year) ) { tmp -= daysInMonth(_month, _year); if ( _month == 2 && isInLeapYear() ) |