Re: [Boost-bugs] [Boost C++ Libraries] #2809: [patch] Date Time exception with MinGW

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2809: [patch] Date Time exception with MinGW
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-05-13 18:53:11


#2809: [patch] Date Time exception with MinGW
---------------------------+------------------------------------------------
  Reporter: Claudio Bley | Owner: az_sw_dude
      Type: Bugs | Status: new
 Milestone: Boost 1.39.0 | Component: date_time
   Version: Boost 1.38.0 | Severity: Problem
Resolution: | Keywords:
---------------------------+------------------------------------------------

Comment(by christian.stimming_at_[hidden]):

 I can confirm both the problem (mingw, gcc-3.4.2) and its proposed
 solution. As an alternative to the patch above, the change below would fix
 the warning as well. Please please include it in SVN, thanks a lot!

 {{{
 --- filetime_functions.hpp~ Wed May 13 12:13:16 2009
 +++ filetime_functions.hpp Wed May 13 18:35:09 2009
 @@ -98,7 +98,7 @@
          * in 100-nanosecond intervals */
          const uint64_t c1 = 27111902UL;
          const uint64_t c2 = 3577643008UL; // issues warning without 'UL'
 - const uint64_t shift = (c1 << 32) + c2;
 + const uint64_t shift = (uint64_t(c1) << 32) + c2;

          union {
              FileTimeT as_file_time;
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2809#comment:6>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:00 UTC