gallium: Fix msvc warning.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Sat, 18 Oct 2008 04:31:00 +0000 (13:31 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Mon, 3 Nov 2008 13:34:52 +0000 (22:34 +0900)
src/gallium/auxiliary/util/u_tile.c

index 853c503f4ff697f3e5c7a51675c36111e3a132fa..00c12badf2e95ab354b70005ed2062452fb6d0ec 100644 (file)
@@ -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;
    }