From: <hid...@us...> - 2008-01-02 22:23:34
|
Revision: 1347 http://opende.svn.sourceforge.net/opende/?rev=1347&view=rev Author: hidden_asbestos Date: 2008-01-02 14:23:35 -0800 (Wed, 02 Jan 2008) Log Message: ----------- Fixed Visual Studio errors regarding basic numerical type definitions ( unsigned __int8 instead of __uint8 ); Fixed unrelated double cast warning on default linear and angular damping thresholds. Modified Paths: -------------- trunk/ode/src/common-internal.h trunk/ode/src/ode.cpp Modified: trunk/ode/src/common-internal.h =================================================================== --- trunk/ode/src/common-internal.h 2008-01-02 22:18:12 UTC (rev 1346) +++ trunk/ode/src/common-internal.h 2008-01-02 22:23:35 UTC (rev 1347) @@ -20,12 +20,12 @@ #include <inttypes.h> #else #ifdef _MSC_VER - typedef __int32 int32_t; - typedef __uint32 uint32_t; - typedef __int16 int16_t; - typedef __uint16 uint16_t; - typedef __int8 int8_t; - typedef __uint8 uint8_t; + typedef __int32 int32_t; + typedef unsigned __int32 uint32_t; + typedef __int16 int16_t; + typedef unsigned __int16 uint16_t; + typedef __int8 int8_t; + typedef unsigned __int8 uint8_t; #else typedef int int32_t; typedef unsigned uint32_t; Modified: trunk/ode/src/ode.cpp =================================================================== --- trunk/ode/src/ode.cpp 2008-01-02 22:18:12 UTC (rev 1346) +++ trunk/ode/src/ode.cpp 2008-01-02 22:23:35 UTC (rev 1347) @@ -1495,8 +1495,8 @@ w->dampingp.linear_scale = 0; w->dampingp.angular_scale = 0; - w->dampingp.linear_threshold = 0.01 * 0.01; - w->dampingp.angular_threshold = 0.01 * 0.01; + w->dampingp.linear_threshold = REAL( 0.01 ) * REAL( 0.01 ); + w->dampingp.angular_threshold = REAL( 0.01 ) * REAL( 0.01 ); w->max_angular_speed = dInfinity; return w; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |