File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
MultiSource/Benchmarks/Bullet/include/BulletCollision/BroadphaseCollision Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ class btHashedOverlappingPairCache : public btOverlappingPairCache
195
195
// This assumes proxyId1 and proxyId2 are 16-bit.
196
196
SIMD_FORCE_INLINE int getHash(int proxyId1, int proxyId2)
197
197
{
198
- int key = (proxyId2 << 16) | proxyId1;
198
+ unsigned int key = (proxyId2 << 16) | proxyId1;
199
199
key = ~key + (key << 15);
200
200
key = key ^ (key >> 12);
201
201
key = key + (key << 2);
@@ -210,7 +210,7 @@ class btHashedOverlappingPairCache : public btOverlappingPairCache
210
210
211
211
SIMD_FORCE_INLINE unsigned int getHash (unsigned int proxyId1, unsigned int proxyId2)
212
212
{
213
- int key = static_cast <int >(((unsigned int )proxyId1) | (((unsigned int )proxyId2) <<16 ));
213
+ unsigned int key = static_cast <int >(((unsigned int )proxyId1) | (((unsigned int )proxyId2) <<16 ));
214
214
// Thomas Wang's hash
215
215
216
216
key += ~(key << 15 );
You can’t perform that action at this time.
0 commit comments