From: Brian Paul Date: Thu, 1 Dec 2005 01:00:13 +0000 (+0000) Subject: remove uintptr_t cast X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f285f0d8f60adafdfba5c1f0563b81c68bd398d3;p=mesa.git remove uintptr_t cast --- 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;