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 853c503..00c12ba 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;
    }