summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texstore.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-12-01 01:00:13 +0000
committerBrian Paul <[email protected]>2005-12-01 01:00:13 +0000
commitf285f0d8f60adafdfba5c1f0563b81c68bd398d3 (patch)
treeb966eac556ac82d0f3b1903c292f98a2a0a1afaa /src/mesa/main/texstore.c
parent6b25193b9266fd1759845d65dcf41f3d5e3a0d3c (diff)
remove uintptr_t cast
Diffstat (limited to 'src/mesa/main/texstore.c')
-rw-r--r--src/mesa/main/texstore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c
index 5f6fb29b5fb..bfac3090866 100644
--- a/src/mesa/main/texstore.c
+++ b/src/mesa/main/texstore.c
@@ -2165,7 +2165,7 @@ _mesa_validate_pbo_compressed_teximage(GLcontext *ctx,
return pixels;
}
if ((const GLubyte *) pixels + imageSize >
- (const GLubyte *)(uintptr_t) packing->BufferObj->Size) {
+ ((const GLubyte *) 0) + packing->BufferObj->Size) {
/* out of bounds read! */
_mesa_error(ctx, GL_INVALID_OPERATION, funcName, "(invalid PBO access");
return NULL;