util_logbase2 takes and returns unsigned, not int
authorMatt Turner <mattst88@gmail.com>
Mon, 9 May 2011 04:17:02 +0000 (00:17 -0400)
committerBrian Paul <brianp@vmware.com>
Thu, 12 May 2011 22:37:50 +0000 (16:37 -0600)
Signed-off-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/llvmpipe/lp_rast_debug.c

index bc7dc646ded48946515b1cb6773cf76f323121ed..03e67dc81777ab7721c4a0b98821c180c5d31b37 100644 (file)
@@ -397,8 +397,8 @@ lp_debug_draw_bins_by_cmd_length( struct lp_scene *scene )
    for (y = 0; y < scene->tiles_y; y++) {
       for (x = 0; x < scene->tiles_x; x++) {
          const char *bits = " ...,-~:;=o+xaw*#XAWWWWWWWWWWWWWWWW";
-         int sz = lp_scene_bin_size(scene, x, y);
-         int sz2 = util_logbase2(sz);
+         unsigned sz = lp_scene_bin_size(scene, x, y);
+         unsigned sz2 = util_logbase2(sz);
          debug_printf("%c", bits[MIN2(sz2,32)]);
       }
       debug_printf("\n");