From: Matt Turner Date: Mon, 13 Jul 2015 01:01:54 +0000 (-0700) Subject: util: Avoid double promotion. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b568a5f6a8c6bb07b27e9badce01a8a73ba56c03;p=mesa.git util: Avoid double promotion. Reviewed-by: Iago Toral Quiroga --- 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)