From 9df2f5c9237579bf1221b784ae87ed789237fb1c Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Mon, 31 Oct 2011 09:23:41 -0400 Subject: bug #369 - Quaternion alignment is broken The problem was two-fold: * missing aligned operator new * Flags were mis-computed, the Aligned constant was misused --- test/geo_quaternion.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/geo_quaternion.cpp') diff --git a/test/geo_quaternion.cpp b/test/geo_quaternion.cpp index e03245654..1e7b2cba0 100644 --- a/test/geo_quaternion.cpp +++ b/test/geo_quaternion.cpp @@ -120,6 +120,10 @@ template void quaternion(void) VERIFY_IS_APPROX(q1f.template cast(),q1); Quaternion q1d = q1.template cast(); VERIFY_IS_APPROX(q1d.template cast(),q1); + + // test bug 369 - improper alignment. + Quaternionx *q = new Quaternionx; + delete q; } template void mapQuaternion(void){ @@ -191,7 +195,6 @@ template void check_const_correctness(const PlainObjec VERIFY( !(Map::Flags & LvalueBit) ); } - void test_geo_quaternion() { for(int i = 0; i < g_repeat; i++) { -- cgit v1.2.3