summaryrefslogtreecommitdiff
path: root/boost/polygon
diff options
context:
space:
mode:
Diffstat (limited to 'boost/polygon')
-rw-r--r--boost/polygon/detail/voronoi_ctypes.hpp6
-rw-r--r--boost/polygon/voronoi_diagram.hpp4
2 files changed, 5 insertions, 5 deletions
diff --git a/boost/polygon/detail/voronoi_ctypes.hpp b/boost/polygon/detail/voronoi_ctypes.hpp
index d8580dda4e..a2ea9ffd63 100644
--- a/boost/polygon/detail/voronoi_ctypes.hpp
+++ b/boost/polygon/detail/voronoi_ctypes.hpp
@@ -470,7 +470,7 @@ class extended_int {
ret_val.first *= static_cast<fpt64>(0x100000000LL);
ret_val.first += static_cast<fpt64>(this->chunks_[sz - i]);
}
- ret_val.second = (sz - 3) << 5;
+ ret_val.second = static_cast<int>((sz - 3) << 5);
}
}
if (this->count_ < 0)
@@ -490,7 +490,7 @@ class extended_int {
add(c2, sz2, c1, sz1);
return;
}
- this->count_ = sz1;
+ this->count_ = static_cast<int32>(sz1);
uint64 temp = 0;
for (std::size_t i = 0; i < sz2; ++i) {
temp += static_cast<uint64>(c1[i]) + static_cast<uint64>(c2[i]);
@@ -534,7 +534,7 @@ class extended_int {
}
sz2 = sz1;
}
- this->count_ = sz1-1;
+ this->count_ = static_cast<int32>(sz1-1);
bool flag = false;
for (std::size_t i = 0; i < sz2; ++i) {
this->chunks_[i] = c1[i] - c2[i] - (flag?1:0);
diff --git a/boost/polygon/voronoi_diagram.hpp b/boost/polygon/voronoi_diagram.hpp
index 7df26ec4e1..33803f4eba 100644
--- a/boost/polygon/voronoi_diagram.hpp
+++ b/boost/polygon/voronoi_diagram.hpp
@@ -347,8 +347,8 @@ class voronoi_diagram {
const detail::site_event<CT>& site1,
const detail::site_event<CT>& site2) {
// Get sites' indexes.
- int site_index1 = site1.sorted_index();
- int site_index2 = site2.sorted_index();
+ std::size_t site_index1 = site1.sorted_index();
+ std::size_t site_index2 = site2.sorted_index();
bool is_linear = is_linear_edge(site1, site2);
bool is_primary = is_primary_edge(site1, site2);