From 904d61c3113c18308ded2d015fb92cd3db4ea1d5 Mon Sep 17 00:00:00 2001 From: namespace Date: Tue, 12 Sep 2006 13:12:54 +0000 Subject: [PATCH] Fixed 64 Bit issue in patch.h, see http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=1109 for details git-svn-id: https://zerowing.idsoftware.com/svn/radiant/GtkRadiant/trunk@105 8a3a26a2-13c4-0310-b231-cf6edde360e5 --- CHANGES | 5 +++++ radiant/patch.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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 { -- 2.39.2