compiler issue with GCC 3.3.5

This commit is contained in:
ejcoumans 2006-11-23 06:27:32 +00:00
parent 7dc6aa215a
commit 43ab3c67c4

View File

@ -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);
}
//