Remove clang compling warning
This commit is contained in:
parent
40fe84ddbd
commit
2127e44cc2
@ -78,8 +78,10 @@ ATTRIBUTE_ALIGNED16 (struct) btQuantizedBvhNode
|
|||||||
int getTriangleIndex() const
|
int getTriangleIndex() const
|
||||||
{
|
{
|
||||||
btAssert(isLeafNode());
|
btAssert(isLeafNode());
|
||||||
|
unsigned int x = 0;
|
||||||
|
unsigned int y = (~(x&0))<<(31-MAX_NUM_PARTS_IN_BITS);
|
||||||
// Get only the lower bits where the triangle index is stored
|
// Get only the lower bits where the triangle index is stored
|
||||||
return (m_escapeIndexOrTriangleIndex&~((~0)<<(31-MAX_NUM_PARTS_IN_BITS)));
|
return (m_escapeIndexOrTriangleIndex&~(y));
|
||||||
}
|
}
|
||||||
int getPartId() const
|
int getPartId() const
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user