compiler issue with GCC 3.3.5
This commit is contained in:
@@ -218,7 +218,10 @@ struct GJK
|
|||||||
// vdh : very dumm hash
|
// vdh : very dumm hash
|
||||||
static inline U Hash(const Vector3& v)
|
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);
|
return(((*((const U*)&h))*169639)&GJK_hashmask);
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user