mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-11 21:44:04 +00:00
[strategies] Fix msvc conversion warning in centroid::average
This commit is contained in:
parent
956998d37d
commit
f52f1820ab
@ -3,7 +3,7 @@
|
|||||||
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
|
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
|
||||||
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
|
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
|
||||||
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
|
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
|
||||||
// Copyright (c) 2017 Adam Wulkiewicz, Lodz, Poland.
|
// Copyright (c) 2017-2023 Adam Wulkiewicz, Lodz, Poland.
|
||||||
|
|
||||||
// This file was modified by Oracle on 2015-2021.
|
// This file was modified by Oracle on 2015-2021.
|
||||||
// Modifications copyright (c) 2015-2021 Oracle and/or its affiliates.
|
// Modifications copyright (c) 2015-2021 Oracle and/or its affiliates.
|
||||||
@ -89,7 +89,8 @@ public :
|
|||||||
centroid = state.centroid;
|
centroid = state.centroid;
|
||||||
if ( state.count > 0 )
|
if ( state.count > 0 )
|
||||||
{
|
{
|
||||||
divide_value(centroid, state.count);
|
using coord_t = typename coordinate_type<ResultPoint>::type;
|
||||||
|
divide_value(centroid, static_cast<coord_t>(state.count));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user