Skip to content

Commit c7f823b

Browse files
fix (int)0x80000000 assignment error on mac
1 parent 17298e7 commit c7f823b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bullet/vectormath/sse/vec_aos.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ VECTORMATH_FORCE_INLINE const Vector3 Vector3::operator -( ) const
577577
{
578578
//return Vector3(_mm_sub_ps( _mm_setzero_ps(), mVec128 ) );
579579

580-
VM_ATTRIBUTE_ALIGN16 static const int array[] = {0x80000000, 0x80000000, 0x80000000, 0x80000000};
580+
VM_ATTRIBUTE_ALIGN16 static const int array[] = {static_cast<int>(0x80000000), static_cast<int>(0x80000000), static_cast<int>(0x80000000), static_cast<int>(0x80000000)};
581581
__m128 NEG_MASK = SSEFloat(*(const vec_float4*)array).vf;
582582
return Vector3(_mm_xor_ps(get128(),NEG_MASK));
583583
}

0 commit comments

Comments
 (0)