From: namespace Date: Tue, 12 Sep 2006 13:12:54 +0000 (+0000) Subject: Fixed 64 Bit issue in patch.h, see http://zerowing.idsoftware.com/bugzilla/show_bug... X-Git-Tag: xonotic-v0.7.0~16^2~12^2~189 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=commitdiff_plain;h=896d2a255aa4dc2c7c132991fbb6c9890acd13fa Fixed 64 Bit issue in patch.h, see http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=1109 for details git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@105 8a3a26a2-13c4-0310-b231-cf6edde360e5 --- diff --git a/CHANGES b/CHANGES index 99bb1fd4..461b47d7 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 2362415e..d1763873 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 {