[Boost-bugs] [Boost C++ Libraries] #4318: warning C4244: 'initializing' : conversion from '__int64' to 'const long', possible loss of data

Subject: [Boost-bugs] [Boost C++ Libraries] #4318: warning C4244: 'initializing' : conversion from '__int64' to 'const long', possible loss of data
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-06-08 23:57:22


#4318: warning C4244: 'initializing' : conversion from '__int64' to 'const long',
possible loss of data
-------------------------------------+--------------------------------------
 Reporter: viboes | Owner: anthonyw
     Type: Support Requests | Status: new
Milestone: Boost 1.44.0 | Component: thread
  Version: Boost Development Trunk | Severity: Cosmetic
 Keywords: |
-------------------------------------+--------------------------------------
 The following warnings appears on msvc-9.0express:

 compile-c-c++ ..\..\..\bin.v2\libs\thread\build\msvc-9.0express\debug
 \link-static\threading-multi\win32\thread.obj
 thread.cpp
 ..\..\..\libs\thread\src\win32\thread.cpp(359) : warning C4244:
 'initializing' : conversion from '__int64' to 'const long', possible loss
 of data


 {{{
 359 long const
 ticks_per_second=target_time.abs_time.time_of_day().ticks_per_second();
 }}}


 Shouldn't ticks_per_second be declared as having type
 ???::rep_type::tick_type?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4318>
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:03 UTC