Mesa (gallium-0.2): gallium: Silence compiler warnings on Windows.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Mon Nov 3 14:55:36 UTC 2008


Module: Mesa
Branch: gallium-0.2
Commit: 95438727ddc4012d6e2db843d7173607b2a23b56
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=95438727ddc4012d6e2db843d7173607b2a23b56

Author: Michal Krol <michal at tungstengraphics.com>
Date:   Tue Aug 26 17:40:24 2008 +0200

gallium: Silence compiler warnings on Windows.

---

 src/gallium/auxiliary/util/u_tile.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_tile.c b/src/gallium/auxiliary/util/u_tile.c
index fa683b6..32f6b07 100644
--- a/src/gallium/auxiliary/util/u_tile.c
+++ b/src/gallium/auxiliary/util/u_tile.c
@@ -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;
    }




More information about the mesa-commit mailing list