From: Michal Krol Date: Thu, 7 Aug 2008 14:22:34 +0000 (+0200) Subject: softpipe: Silence compiler warnings on Windows. X-Git-Tag: 062012170305~17580^2~390^2~727 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d50d7a54de89e602a9951264878dfe06924e1adb;p=profile%2Fivi%2Fmesa.git softpipe: Silence compiler warnings on Windows. --- diff --git a/src/gallium/drivers/softpipe/sp_tex_sample.c b/src/gallium/drivers/softpipe/sp_tex_sample.c index ed15052..8e39269 100644 --- a/src/gallium/drivers/softpipe/sp_tex_sample.c +++ b/src/gallium/drivers/softpipe/sp_tex_sample.c @@ -601,9 +601,9 @@ get_texel(struct tgsi_sampler *sampler, unsigned face, unsigned level, int x, int y, int z, float rgba[NUM_CHANNELS][QUAD_SIZE], unsigned j) { - if (x < 0 || x >= sampler->texture->width[level] || - y < 0 || y >= sampler->texture->height[level] || - z < 0 || z >= sampler->texture->depth[level]) { + if (x < 0 || x >= (int) sampler->texture->width[level] || + y < 0 || y >= (int) sampler->texture->height[level] || + z < 0 || z >= (int) sampler->texture->depth[level]) { rgba[0][j] = sampler->state->border_color[0]; rgba[1][j] = sampler->state->border_color[1]; rgba[2][j] = sampler->state->border_color[2];