From 76d2d2ca41df98369945d0558e189f4023718256 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sun, 25 Oct 2009 18:34:43 +0000 Subject: Fix fat-finger bug that left implicit rules with identical stem lengths being sorted indeterminately. --- implicit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'implicit.c') diff --git a/implicit.c b/implicit.c index b4e843c..0bf89e0 100644 --- a/implicit.c +++ b/implicit.c @@ -180,10 +180,10 @@ struct tryrule int stemlen_compare (const void *v1, const void *v2) { - const struct tryrule *r1 = (const struct tryrule *)v1; - const struct tryrule *r2 = (const struct tryrule *)v2; + const struct tryrule *r1 = v1; + const struct tryrule *r2 = v2; int r = r1->stemlen - r2->stemlen; - return r != 0 ? r : (int)(r1->order - r1->order); + return r != 0 ? r : (int)(r1->order - r2->order); } /* Search the pattern rules for a rule with an existing dependency to make -- cgit v1.2.3