[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:
@@ -106,7 +106,7 @@ namespace HACD
|
|||||||
m_nMaxNodes = 0;
|
m_nMaxNodes = 0;
|
||||||
for(size_t k = 0; k < maxDepth; k++)
|
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];
|
m_nodes = new RMNode[m_nMaxNodes];
|
||||||
RMNode & root = m_nodes[AddNode()];
|
RMNode & root = m_nodes[AddNode()];
|
||||||
|
|||||||
Reference in New Issue
Block a user