mirror of
https://github.com/bulletphysics/bullet3
synced 2025-01-05 15:21:06 +00:00
compiler issue with GCC 3.3.5
This commit is contained in:
parent
7dc6aa215a
commit
43ab3c67c4
@ -218,7 +218,10 @@ struct GJK
|
||||
// vdh : very dumm hash
|
||||
static inline U Hash(const Vector3& v)
|
||||
{
|
||||
const U h(U(v[0]*15461)^U(v[1]*83003)^U(v[2]*15473));
|
||||
//this doesn't compile under GCC 3.3.5, so add the ()...
|
||||
//const U h(U(v[0]*15461)^U(v[1]*83003)^U(v[2]*15473));
|
||||
//return(((*((const U*)&h))*169639)&GJK_hashmask);
|
||||
const U h((U)(v[0]*15461)^(U)(v[1]*83003)^(U)(v[2]*15473));
|
||||
return(((*((const U*)&h))*169639)&GJK_hashmask);
|
||||
}
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user