summaryrefslogtreecommitdiff
path: root/indra/llmath/llvolume.cpp
diff options
context:
space:
mode:
authorBoroondas Gupte <hg@boroon.dasgupta.ch>2010-11-23 01:52:11 +0100
committerBoroondas Gupte <hg@boroon.dasgupta.ch>2010-11-23 01:52:11 +0100
commit8edd7e94b1f294fe71e9c0d0b5bfa1b7ef7e11cc (patch)
treea06886cf72fab1c42d56f97ae7d81c5e945dc1a7 /indra/llmath/llvolume.cpp
parentbe1fd73390cab288c75ef99e704f3aa195a0c4ac (diff)
parent4f388eacf6395a380270815138e0684fefd7b6c3 (diff)
merged CTS-323: Don't cast pointers to U32
Diffstat (limited to 'indra/llmath/llvolume.cpp')
-rw-r--r--indra/llmath/llvolume.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/llmath/llvolume.cpp b/indra/llmath/llvolume.cpp
index c20124076b..c0b50b606e 100644
--- a/indra/llmath/llvolume.cpp
+++ b/indra/llmath/llvolume.cpp
@@ -29,6 +29,7 @@
#include "llmath.h"
#include <set>
+#include <stdint.h>
#include "llerror.h"
#include "llmemtype.h"
@@ -90,10 +91,10 @@ const S32 SCULPT_MIN_AREA_DETAIL = 1;
extern BOOL gDebugGL;
-void assert_aligned(void* ptr, U32 alignment)
+void assert_aligned(void* ptr, uintptr_t alignment)
{
#if 0
- U32 t = (U32) ptr;
+ uintptr_t t = (uintptr_t) ptr;
if (t%alignment != 0)
{
llerrs << "WTF?" << llendl;