Mesa (master): util_logbase2 takes and returns unsigned, not int

Brian Paul brianp at kemper.freedesktop.org
Fri May 13 14:32:01 UTC 2011


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

Author: Matt Turner <mattst88 at gmail.com>
Date:   Mon May  9 00:17:02 2011 -0400

util_logbase2 takes and returns unsigned, not int

Signed-off-by: Matt Turner <mattst88 at gmail.com>
Signed-off-by: Brian Paul <brianp at vmware.com>

---

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

diff --git a/src/gallium/drivers/llvmpipe/lp_rast_debug.c b/src/gallium/drivers/llvmpipe/lp_rast_debug.c
index bc7dc64..03e67dc 100644
--- a/src/gallium/drivers/llvmpipe/lp_rast_debug.c
+++ b/src/gallium/drivers/llvmpipe/lp_rast_debug.c
@@ -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");




More information about the mesa-commit mailing list