From: Matt Turner Date: Tue, 2 Apr 2013 20:38:07 +0000 (-0700) Subject: register_allocate: Fix the type of best_benefit. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2e177bc8a5585d4b0234b1b680617bfd2ae6ddf8;p=mesa.git register_allocate: Fix the type of best_benefit. Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/program/register_allocate.c b/src/mesa/program/register_allocate.c index 2c826fc6604..e276b8ac84b 100644 --- a/src/mesa/program/register_allocate.c +++ b/src/mesa/program/register_allocate.c @@ -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++) {