sw_ooxmlimport: move export test to sw_ooxmlexport8
[LibreOffice.git] / external / box2d / fix-strict-aliasing-error.patch
blob20b5e49eb93600949f9b60a3aca95128d8d3eb45
1 diff -ru box2d/Box2D/Box2D/Common/b2Math.h box2d_patched/Box2D/Box2D/Common/b2Math.h
2 --- box2d/Box2D/Box2D/Common/b2Math.h 2014-04-06 03:43:12.000000000 +0300
3 +++ box2d_patched/Box2D/Box2D/Common/b2Math.h 2020-06-16 07:37:31.713248714 +0300
4 @@ -25,8 +25,7 @@
5 /// This function is used to ensure that a floating point number is not a NaN or infinity.
6 inline bool b2IsValid(float32 x)
8 - int32 ix = *reinterpret_cast<int32*>(&x);
9 - return (ix & 0x7f800000) != 0x7f800000;
10 + return isfinite(x);
13 /// This is a approximate yet fast inverse square-root.