[Boost-bugs] [Boost C++ Libraries] #8402: x64 compiler warning C4244: conversion from 'unsigned __int64' to 'int', possible loss of data

Subject: [Boost-bugs] [Boost C++ Libraries] #8402: x64 compiler warning C4244: conversion from 'unsigned __int64' to 'int', possible loss of data
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-04-05 14:49:55


#8402: x64 compiler warning C4244: conversion from 'unsigned __int64' to 'int',
possible loss of data
-----------------------------------------------------------------------------------------+
 Reporter: Volker Schöch <vschoech@…> | Owner: barendgehrels
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: geometry
  Version: Boost 1.52.0 | Severity: Problem
 Keywords: x64, VC++ 2012, warning, C4244, conversion from 'unsigned __int64' to 'int' |
-----------------------------------------------------------------------------------------+
 I'm using Microsoft Visual Studio 2012 to compile boost 1.52.0 in an x64
 project. I use compiter flag /W4. In this situation, some implicit casts
 in geometry trigger compiler warnings (which we declared errors for our
 project), because some numeric data types that match in x86 have different
 widths in x64:
 {{{
 \boost_1_52_0\boost\geometry\io\wkt\read.hpp(514): error C4244:
 'initializing' : conversion from 'unsigned __int64' to 'int', possible
 loss of data int n = boost::size(points);
 }}}
 {{{
 \boost_1_52_0\boost\geometry\algorithms\detail\overlay\follow.hpp(395):
 error C4244: 'argument' : conversion from 'unsigned __int64' to 'int',
 possible loss of data geometry::copy_segments<false>(linestring,
 current_segment_id, boost::size(linestring) - 1, current_piece);
 }}}
 Maybe it's possible to eliminate those warnings for the next boost
 version?

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