date_time-1_33_1 - Get rid of warnings...

Hi all, Sorry in advance if this is not the proper way for suggest a little patch... Compilation with VC71 raise tons of possible loss of data warning when using the microsec_clock::local_time() or universal_time(), warnings that can be avoided adding cast to (int) and to (boost::uint32_t) in: date_time\microsec_time_clock.hpp(156) date_time\microsec_time_clock.hpp(175) //The following line will adjusts the fractional second tick in terms //of the current time system. For example, if the time system //doesn't support fractional seconds then res_adjust returns 0 //and all the fractional seconds return 0. int adjust = (int)resolution_traits_type::res_adjust()/1000000; boost::uint32_t sub_sec = (boost::uint32_t)(filetime % 10000000) / 10; // microseconds What is the correct procedure to supply a patch? thanks in advance. --- Paolo Invernizzi

Paolo Invernizzi wrote:
Hi all,
Sorry in advance if this is not the proper way for suggest a little patch...
Compilation with VC71 raise tons of possible loss of data warning when using the microsec_clock::local_time() or universal_time(), warnings that can be avoided adding cast to (int) and to (boost::uint32_t) in: ...snip details...
Thx for the report -- I've committed a patch to CVS that should resolve these. Jeff
participants (2)
-
Jeff Garland
-
Paolo Invernizzi