From f285f0d8f60adafdfba5c1f0563b81c68bd398d3 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 1 Dec 2005 01:00:13 +0000 Subject: [PATCH] remove uintptr_t cast --- src/mesa/main/texstore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2