From def41a090124cf8b78777dd1a420ff507f607aff Mon Sep 17 00:00:00 2001 From: bkaradzic Date: Fri, 18 Oct 2013 23:45:34 -0700 Subject: [PATCH] Fixed 64-bit warnings. --- examples/14-shadowvolumes/shadowvolumes.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/14-shadowvolumes/shadowvolumes.cpp b/examples/14-shadowvolumes/shadowvolumes.cpp index b4818e71..71422f80 100644 --- a/examples/14-shadowvolumes/shadowvolumes.cpp +++ b/examples/14-shadowvolumes/shadowvolumes.cpp @@ -868,7 +868,7 @@ struct HalfEdges edges[idx2].push_back(idx0); } - uint32_t numRows = edges.size(); + uint32_t numRows = (uint32_t)edges.size(); m_offsets = (uint32_t*)malloc(numRows * sizeof(uint32_t)); HalfEdge* he = m_data; @@ -877,7 +877,7 @@ struct HalfEdges m_offsets[ii] = uint32_t(he - m_data); std::vector& row = edges[ii]; - for (uint32_t jj = 0, end = row.size(); jj < end; ++jj) + for (uint32_t jj = 0, end = (uint32_t)row.size(); jj < end; ++jj) { he->m_secondIndex = row[jj]; he->m_marked = false; @@ -1040,7 +1040,7 @@ struct Group face.m_reverseVertexOrder = false; m_edges.push_back(edge); - edgeIndexMap.insert(std::make_pair(std::make_pair(i0, i1), m_edges.size()-1)); + edgeIndexMap.insert(std::make_pair(std::make_pair(i0, i1), (uint32_t)m_edges.size()-1)); } } }