From 73cb43e71f40ed69e73946f291b324d4f826e91b Mon Sep 17 00:00:00 2001 From: Inusaito Sayori Date: Wed, 30 Oct 2013 08:40:47 -0400 Subject: [PATCH] [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. --- indra/libhacd/hacdRaycastMesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/libhacd/hacdRaycastMesh.cpp b/indra/libhacd/hacdRaycastMesh.cpp index 5edd9adc3..2f84bbc11 100644 --- a/indra/libhacd/hacdRaycastMesh.cpp +++ b/indra/libhacd/hacdRaycastMesh.cpp @@ -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(1) << maxDepth); } m_nodes = new RMNode[m_nMaxNodes]; RMNode & root = m_nodes[AddNode()];