Commit 578dd42f authored by Jens Kroeger's avatar Jens Kroeger
Browse files

Cluster: fix sign type + add static_cast

parent 4da1a152
......@@ -27,8 +27,8 @@ void Cluster::addPixel(const Pixel* pixel) {
// map.begin() returns iterator to first element
// map.rbegin() returns iterator to first element from the back
// map.end() would return a "past-the-end element" -> cannot be used here
m_columnWidth = 1 + m_columnHits.begin()->first - m_columnHits.rbegin()->first;
m_rowWidth = 1 + m_rowHits.begin()->first - m_rowHits.rbegin()->first;
m_columnWidth = static_cast<size_t>(1 + m_columnHits.begin()->first - m_columnHits.rbegin()->first);
m_rowWidth = static_cast<size_t>(1 + m_rowHits.rbegin()->first - m_rowHits.begin()->first);
}
double Cluster::error() const {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment