Modify

Ticket #3608 (new Bugs)

Opened 4 years ago

run time warning in vc9 when parsing ptime (with patch)

Reported by: anonymous Owned by: az_sw_dude
Milestone: Boost 1.41.0 Component: date_time
Version: Boost 1.40.0 Severity: Problem
Keywords: Cc:

Description

run time warning(loss of precision when converting between types) in vc9 (with run time checks enabled) when parsing ptime with year format

reproduceable testcase: parse "20090101" with facet "%Y-%m-%dT%H:%M:%S%F" makes vc stop execution to notify of mismatch.

the patch: sets the local variable to unsigned int (instead of unsigned short)

Attachments

boost-date_time-parse_ptrime_runtime_type_mismatch.patch Download (452 bytes) - added by Thomas.Lemm@… 4 years ago.
the patch

Change History

Changed 4 years ago by Thomas.Lemm@…

the patch

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as new
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.