playX / box2d

Automatically exported from code.google.com/p/box2d
0 stars 0 forks source link

Patch to avoid build problems in v2.2.1 (and onward) for quaternion.cpp #279

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I work for a company that's extremely anal about warnings; any warning is an 
error and warnings are turned up to "11" on the dial. 

This is what I had to do to make this compile (diff between new<my code> and 
existing 2.2.1 code:

--- old/quaternion.cpp  2012-04-19 19:27:30.414398801 -0700
+++ new/quaternion.cpp  2012-04-19 19:26:27.930454067 -0700
@@ -112,7 +112,7 @@

 quat operator * ( const quat &a, const quat &b)
 {
-    return quat( a.s*b.s - a.v*b.v, a.s*b.v + b.s*a.v + a.v^b.v );
+    return quat( a.s*b.s - a.v*b.v, a.s*b.v + b.s*a.v + (a.v^b.v) );
 }

 quat operator * ( const quat &a, const float t)

Original issue reported on code.google.com by garybrad...@gmail.com on 20 Apr 2012 at 2:50

GoogleCodeExporter commented 9 years ago
The testbed is now using a new GUI system.

Original comment by erinca...@gmail.com on 4 Apr 2014 at 4:20