util: Avoid double promotion.
authorMatt Turner <mattst88@gmail.com>
Mon, 13 Jul 2015 01:01:54 +0000 (18:01 -0700)
committerMatt Turner <mattst88@gmail.com>
Wed, 29 Jul 2015 16:34:52 +0000 (09:34 -0700)
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/util/register_allocate.c

index 2ad8c3ce11a1611cb3e561cf77a3bdb6da5c58ef..95be20fcc1b711ec998359372b89ebc3a86bb690 100644 (file)
@@ -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)