From 4a76886bb932e41b48ae7eebdd51a0867456e2bb Mon Sep 17 00:00:00 2001 From: "erwin.coumans" Date: Wed, 29 Feb 2012 02:00:00 +0000 Subject: [PATCH] Fix in double precision version of a unit test. Fixes Issue 596 Thanks to jmmartinez1986 for the report and fix --- UnitTests/BulletUnitTests/TestBulletOnly.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UnitTests/BulletUnitTests/TestBulletOnly.h b/UnitTests/BulletUnitTests/TestBulletOnly.h index b337f6b5b..bdac6f842 100644 --- a/UnitTests/BulletUnitTests/TestBulletOnly.h +++ b/UnitTests/BulletUnitTests/TestBulletOnly.h @@ -101,7 +101,7 @@ public: CPPUNIT_ASSERT_DOUBLES_EQUAL( mRigidBody->getLinearVelocity().length2(), velocity.length2(), 1e-8 ); #ifdef BT_USE_DOUBLE_PRECISION - CPPUNIT_ASSERT_DOUBLES_EQUAL( mRigidBody.getAngularVelocity().length2(), spin.length2(), 1e-4 ); + CPPUNIT_ASSERT_DOUBLES_EQUAL( mRigidBody->getAngularVelocity().length2(), spin.length2(), 1e-4 ); #else CPPUNIT_ASSERT_DOUBLES_EQUAL( mRigidBody->getAngularVelocity().length2(), spin.length2(), 5e-3 ); #endif //CPPUNIT_ASSERT_DOUBLES_EQUAL