Anyway unit test project for OSX (x64_64) doesn't get built due to this error.
Code: Select all
...bullet-2.82-r2722/src/vectormath/sse/vec_aos.h:580:51: Constant expression evaluates to 2147483648 which cannot be narrowed to type 'int'
Code: Select all
VM_ATTRIBUTE_ALIGN16 static const int array[] = {0x80000000, 0x80000000, 0x80000000, 0x80000000};
Code: Select all
VECTORMATH_FORCE_INLINE const Vector3 Vector3::operator -( ) const
{
//return Vector3(_mm_sub_ps( _mm_setzero_ps(), mVec128 ) );
VM_ATTRIBUTE_ALIGN16 static const int array[] = {0x80000000, 0x80000000, 0x80000000, 0x80000000};
__m128 NEG_MASK = SSEFloat(*(const vec_float4*)array).vf;
return Vector3(_mm_xor_ps(get128(),NEG_MASK));
}
This seems a bug, though don't know the details, but I think it would be better to use fixed-sized integer type such as
Code: Select all
int16_t
Anyway, for workaround, is it fine to use the first line instead of below lines? And can I expect for a patch?