gallium: Silence compiler warnings on Windows.
authorMichal Krol <michal@tungstengraphics.com>
Tue, 26 Aug 2008 15:40:24 +0000 (17:40 +0200)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Mon, 3 Nov 2008 14:55:38 +0000 (23:55 +0900)
src/gallium/auxiliary/util/u_tile.c

index fa683b6..32f6b07 100644 (file)
@@ -460,7 +460,7 @@ l8_put_tile_rgba(ubyte *dst,
       for (j = 0; j < w; j++, pRow += 4) {
          unsigned r;
          r = float_to_ubyte(pRow[0]);
-         *dst++ = r;
+         *dst++ = (ubyte) r;
       }
       p += src_stride;
    }
@@ -634,7 +634,7 @@ i8_put_tile_rgba(ubyte *dst,
       for (j = 0; j < w; j++, pRow += 4) {
          unsigned r;
          r = float_to_ubyte(pRow[0]);
-         *dst++ = r;
+         *dst++ = (ubyte) r;
       }
       p += src_stride;
    }