From: Brian Paul Date: Sun, 4 Nov 2012 23:43:44 +0000 (-0700) Subject: mesa: silence MSVC signed/unsigned warning in texgetmage.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5c05d28a43b9cd448f60677ae151efda76b54b3a;p=mesa.git mesa: silence MSVC signed/unsigned warning in texgetmage.c Reviewed-by: Jose Fonseca --- diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c index a3720699df5..554c68b7186 100644 --- a/src/mesa/main/texgetimage.c +++ b/src/mesa/main/texgetimage.c @@ -892,7 +892,7 @@ getcompressedteximage_error_check(struct gl_context *ctx, GLenum target, if (!_mesa_is_bufferobj(ctx->Pack.BufferObj)) { /* do bounds checking on writing to client memory */ - if (clientMemSize < compressedSize) { + if (clientMemSize < (GLsizei) compressedSize) { _mesa_error(ctx, GL_INVALID_OPERATION, "glGetnCompressedTexImageARB(out of bounds access:" " bufSize (%d) is too small)", clientMemSize);