Opened 20 years ago
Closed 19 years ago
#131 closed Bugs (Fixed)
date warning (long / short conversion)
Reported by: | frankbuss | Owned by: | az_sw_dude |
---|---|---|---|
Milestone: | Component: | date_time | |
Version: | None | Severity: | |
Keywords: | Cc: |
Description
Visual Studio .NET says for line 62 of boost/date_time/gregorian_calendar.ipp (unsigned short month = m + 3 - 12 * (m/10);) "warning C4244: 'initializing' : conversion from 'unsigned long' to 'unsigned short', possible loss of data", because "m" is of type "date_int_type", which is unsinged long, I think, and "month" is of type "unsigned short". Same problem in line 66 for the "year" argument:"conversion from 'boost::date_time::gregorian_calendar_base<ymd_t ype_,date_int_type_>::date_int_type' to 'unsigned short', possible loss of data"
Change History (2)
comment:2 by , 19 years ago
Status: | assigned → closed |
---|
Logged In: YES user_id=579686 These problems have been resolved in the 1_31 version of boost.
Note:
See TracTickets
for help on using tickets.