Module: Mesa
Branch: master
Commit: 4593e0c85e75a274de0092a5b40c624b6a055acb
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=4593e0c85e75a274de0092a5b40c624b6a055acb

Author: Brian Paul <[email protected]>
Date:   Fri Apr 16 13:01:18 2010 -0600

llvmpipe: use unsigned type to avoid warnings

---

 src/gallium/drivers/llvmpipe/lp_bld_depth.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_bld_depth.c 
b/src/gallium/drivers/llvmpipe/lp_bld_depth.c
index a181a03..afdf400 100644
--- a/src/gallium/drivers/llvmpipe/lp_bld_depth.c
+++ b/src/gallium/drivers/llvmpipe/lp_bld_depth.c
@@ -383,7 +383,7 @@ get_z_shift_and_mask(const struct util_format_description 
*format_desc,
 {
    const unsigned total_bits = format_desc->block.bits;
    unsigned z_swizzle;
-   int chan;
+   unsigned chan;
    unsigned padding_left, padding_right;
    
    assert(format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS);
@@ -427,7 +427,7 @@ get_s_shift_and_mask(const struct util_format_description 
*format_desc,
                      unsigned *shift, unsigned *mask)
 {
    unsigned s_swizzle;
-   int chan, sz;
+   unsigned chan, sz;
 
    s_swizzle = format_desc->swizzle[1];
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to