register_allocate: Fix the type of best_benefit.
authorMatt Turner <mattst88@gmail.com>
Tue, 2 Apr 2013 20:38:07 +0000 (13:38 -0700)
committerMatt Turner <mattst88@gmail.com>
Mon, 8 Apr 2013 17:30:40 +0000 (10:30 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/program/register_allocate.c

index 2c826fc6604b9f52ef62f7a37f25d9c37ee20afa..e276b8ac84bfd9dc1a1ed0b2474936f7e6661393 100644 (file)
@@ -586,7 +586,7 @@ int
 ra_get_best_spill_node(struct ra_graph *g)
 {
    unsigned int best_node = -1;
-   unsigned int best_benefit = 0.0;
+   float best_benefit = 0.0;
    unsigned int n;
 
    for (n = 0; n < g->count; n++) {