register_allocate: Fix the type of best_benefit.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
(cherry picked from commit 2e177bc8a5)
This commit is contained in:
Matt Turner 2013-04-02 13:38:07 -07:00 committed by Carl Worth
parent 26f802d063
commit ff4f5c340f

View file

@ -545,7 +545,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++) {