From 282b4f95bad393c1716ef968eee7ced40c6b8ac3 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Sat, 7 Aug 2010 09:07:46 +0000 Subject: [PATCH] C99 feature removed. [r27892] --- ir/be/becopyheur4.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ir/be/becopyheur4.c b/ir/be/becopyheur4.c index ba38dfe27..face19f38 100644 --- a/ir/be/becopyheur4.c +++ b/ir/be/becopyheur4.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2010 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -255,10 +255,11 @@ static int cmp_col_cost_gt(const void *a, const void *b) { const col_cost_t *c1 = a; const col_cost_t *c2 = b; - if (c2->cost == c1->cost) + real_t diff = c2->cost - c1->cost; + + if (diff == 0.0) return QSORT_CMP(c1->col, c2->col); - real_t diff = c2->cost - c1->cost; return (diff > 0) - (diff < 0); } -- 2.20.1