From: José Fonseca Date: Sat, 18 Oct 2008 04:31:00 +0000 (+0900) Subject: gallium: Fix msvc warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=82e1026c30dd416231df66daf9b2f28bfc1f1cd6;p=mesa.git gallium: Fix msvc warning. --- diff --git a/src/gallium/auxiliary/util/u_tile.c b/src/gallium/auxiliary/util/u_tile.c index 853c503f4ff..00c12badf2e 100644 --- a/src/gallium/auxiliary/util/u_tile.c +++ b/src/gallium/auxiliary/util/u_tile.c @@ -504,7 +504,7 @@ a8_put_tile_rgba(ubyte *dst, for (j = 0; j < w; j++, pRow += 4) { unsigned a; a = float_to_ubyte(pRow[3]); - *dst++ = a; + *dst++ = (ubyte) a; } p += src_stride; }