diff --git a/CHANGES b/CHANGES index 99bb1fd..461b47d 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,11 @@ This is the changelog for developers, != changelog for the end user that we distribute with the binaries. (see changelog) +12/09/2006 +namespace +- Fixed 64 Bit issue in patch.h, see http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=1109 + for details + 11/09/2006 namespace - Fixed unnecessary warnings, see http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=1108 diff --git a/radiant/patch.h b/radiant/patch.h index 2362415..d176387 100644 --- a/radiant/patch.h +++ b/radiant/patch.h @@ -43,6 +43,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include "debugging/debugging.h" #include +#include #include "math/frustum.h" #include "string/string.h" @@ -115,7 +116,7 @@ struct BezierCurve Vector3 right; }; -const std::size_t BEZIERCURVETREE_MAX_INDEX = 1 << ((sizeof(std::size_t) * 8) - 1); +const std::size_t BEZIERCURVETREE_MAX_INDEX = std::numeric_limits::max() / 2 + 1; struct BezierCurveTree {