From b568a5f6a8c6bb07b27e9badce01a8a73ba56c03 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sun, 12 Jul 2015 18:01:54 -0700 Subject: util: Avoid double promotion. Reviewed-by: Iago Toral Quiroga --- src/util/register_allocate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/register_allocate.c b/src/util/register_allocate.c index 2ad8c3ce11a..95be20fcc1b 100644 --- a/src/util/register_allocate.c +++ b/src/util/register_allocate.c @@ -648,7 +648,7 @@ ra_get_best_spill_node(struct ra_graph *g) float cost = g->nodes[n].spill_cost; float benefit; - if (cost <= 0.0) + if (cost <= 0.0f) continue; if (g->nodes[n].in_stack) -- cgit v1.2.3