Boost C++ Libraries: Ticket #131: date warning (long / short conversion) https://svn.boost.org/trac10/ticket/131 <pre class="wiki">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&lt;ymd_t ype_,date_int_type_&gt;::date_int_type' to 'unsigned short', possible loss of data" </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/131 Trac 1.4.3 nobody Thu, 19 Dec 2002 12:38:28 GMT <link>https://svn.boost.org/trac10/ticket/131#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/131#comment:1</guid> <description> <pre class="wiki">Logged In: NO I encounter the same problems. And not only in boost/date_time/gregorian_calendar.ipp :( Btw, could you please set normal carriage return in gregorian_calendar.ipp? Now it has 0x0D 0x0D 0x0A characters as carriage return sequence. I use VC 6 Service Pack 5. Thank you! </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>az_sw_dude</dc:creator> <pubDate>Sat, 17 Apr 2004 21:34:26 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/131#comment:2 https://svn.boost.org/trac10/ticket/131#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">Logged In: YES user_id=579686 These problems have been resolved in the 1_31 version of boost. </pre> Ticket