[ODE] auto-disable patch (yet again)
Colin Bonstead
colin at cyan.com
Thu Apr 22 15:07:31 MST 2004
Ok, I lied. There's actually one more file that needs to be changed to
get rid of all the warnings in VC7.1. In collision_trimesh_trimesh.cpp
the constants defined at the start need to be cast to dReals.
ie, change this:
#define SMALL_ELT 2.5e-4
to this:
#define SMALL_ELT dReal(2.5e-4)
Also, on line 913 the hardcoded 1.0e-8 should be changed to
DISTANCE_EPSILON.
Also, you were right about the vsnprintf, etc, I needed to copy the
latest config.h. Doh. Thanks for all the quick updates Russ.
-----Original Message-----
From: Russ Smith <russ at q12.org>
Sent: Thu, 22 Apr 2004 10:34:01 -0700
To: Colin Bonstead <colin at cyan.com>
Subject: Re: [ODE] auto-disable patch (yet again)
> And one more little thing. In the single precision math functions in
> common.h, you'll want to change
> #define dSqrt(x) ((float)sqrtf(x)) /* square root */
> to
> #define dSqrt(x) ((float)sqrtf(float(x))) /* square
root */
done. i also updated all the dSINGLE math functions to cast their
argument to float.
russ.
--
Russell Smith
http://www.q12.org
More information about the ODE
mailing list