diff --git a/src/mesa/program/register_allocate.c b/src/mesa/program/register_allocate.c index 88793dbdc1e..d5acc9f624e 100644 --- a/src/mesa/program/register_allocate.c +++ b/src/mesa/program/register_allocate.c @@ -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++) {