[Warnings] Fix ..\..\libhacd\hacdRaycastMesh.cpp(109): warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)

All the other involved types are of size_t, so static_cast 1 should work here.
This commit is contained in:
Inusaito Sayori
2013-10-30 08:40:47 -04:00
parent b34a8db34a
commit 73cb43e71f

View File

@@ -106,7 +106,7 @@ namespace HACD
m_nMaxNodes = 0;
for(size_t k = 0; k < maxDepth; k++)
{
m_nMaxNodes += (1 << maxDepth);
m_nMaxNodes += (static_cast<size_t>(1) << maxDepth);
}
m_nodes = new RMNode[m_nMaxNodes];
RMNode & root = m_nodes[AddNode()];