fixes for VC6 level4 compiler warnings

[SVN r20303]
This commit is contained in:
Jeff Garland
2003-10-08 14:09:49 +00:00
parent 2b1aa58bda
commit 08d4d6a09b

View File

@@ -119,7 +119,7 @@ namespace date_time {
date_int_type m = (5*e + 2)/153;
unsigned short day = static_cast<unsigned short>(e - ((153*m + 2)/5) + 1);
unsigned short month = static_cast<unsigned short>(m + 3 - 12 * (m/10));
date_int_type year = 100*b + d - 4800 + (m/10);
year_type year = static_cast<year_type>(100*b + d - 4800 + (m/10));
//std::cout << year << "-" << month << "-" << day << "\n";
return ymd_type(year,month,day);
@@ -139,7 +139,7 @@ namespace date_time {
date_int_type m = (5*e + 2)/153;
unsigned short day = e - ((153*m + 2)/5) + 1;
unsigned short month = m + 3 - 12 * (m/10);
date_int_type year = 100*b + d - 4800 + (m/10);
year_type year = static_cast<year_type>(100*b + d - 4800 + (m/10));
//std::cout << year << "-" << month << "-" << day << "\n";
return ymd_type(year,month,day);