summaryrefslogtreecommitdiffstats
path: root/external/box2d/fix-strict-aliasing-error.patch
diff options
context:
space:
mode:
Diffstat (limited to 'external/box2d/fix-strict-aliasing-error.patch')
-rw-r--r--external/box2d/fix-strict-aliasing-error.patch13
1 files changed, 0 insertions, 13 deletions
diff --git a/external/box2d/fix-strict-aliasing-error.patch b/external/box2d/fix-strict-aliasing-error.patch
deleted file mode 100644
index 20b5e49eb936..000000000000
--- a/external/box2d/fix-strict-aliasing-error.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff -ru box2d/Box2D/Box2D/Common/b2Math.h box2d_patched/Box2D/Box2D/Common/b2Math.h
---- box2d/Box2D/Box2D/Common/b2Math.h 2014-04-06 03:43:12.000000000 +0300
-+++ box2d_patched/Box2D/Box2D/Common/b2Math.h 2020-06-16 07:37:31.713248714 +0300
-@@ -25,8 +25,7 @@
- /// This function is used to ensure that a floating point number is not a NaN or infinity.
- inline bool b2IsValid(float32 x)
- {
-- int32 ix = *reinterpret_cast<int32*>(&x);
-- return (ix & 0x7f800000) != 0x7f800000;
-+ return isfinite(x);
- }
-
- /// This is a approximate yet fast inverse square-root.