summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2015-07-12 18:01:54 -0700
committerMatt Turner <mattst88@gmail.com>2015-07-29 09:34:52 -0700
commitb568a5f6a8c6bb07b27e9badce01a8a73ba56c03 (patch)
treea1dca744fec47f964b96a9c5c810c2a48de3b948 /src/util
parent29ef7a9f19265308e7852c0f8920e0f520f08df3 (diff)
util: Avoid double promotion.
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/register_allocate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/register_allocate.c b/src/util/register_allocate.c
index 2ad8c3ce11..95be20fcc1 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)