s/int/uint/ to silence warnings
authorBrian <brian.paul@tungstengraphics.com>
Fri, 11 Jan 2008 23:32:20 +0000 (16:32 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Fri, 11 Jan 2008 23:32:20 +0000 (16:32 -0700)
src/mesa/pipe/i965simple/brw_tex_layout.c
src/mesa/pipe/i965simple/brw_winsys.h

index 7d6e2851b17d0d60e08910e50d9e7b0f7a553f5f..2b2bf16f1be38956fda98157da432a57a3468114 100644 (file)
@@ -237,7 +237,7 @@ static boolean brw_miptree_layout(struct pipe_context *pipe, struct brw_texture
         unsigned nr_images = pt->target == PIPE_TEXTURE_3D ? depth : 6;
         int x = 0;
         int y = 0;
-        int q, j;
+        uint q, j;
 
         intel_miptree_set_level_info(tex, level, nr_images,
                                      0, tex->total_height,
index 49a12a1c27e747bd69b46bdaddd596707dca8b9b..253599896ca03ae571e122bee910face77a8fbc2 100644 (file)
@@ -190,7 +190,7 @@ static inline boolean brw_batchbuffer_data(struct brw_winsys *winsys,
                                            unsigned bytes)
 {
    static const unsigned incr = sizeof(unsigned);
-   int i;
+   uint i;
    const unsigned *udata = (const unsigned*)(data);
    unsigned size = bytes/incr;
    for (i = 0; i < size; ++i) {