From 30bf796fa71410e456c32d283c37a6fa96f132c0 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 14 Feb 2008 10:35:25 -0500 Subject: [PATCH] (trivial optimization) --- razor.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/razor.c b/razor.c index 034cf31..347cf78 100644 --- a/razor.c +++ b/razor.c @@ -1460,8 +1460,8 @@ razor_set_satisfy(struct razor_set *set, struct array *unsatisfied, r = requires + *u; while (p < pend && - strcmp(&pool[r->name], &upool[p->name]) > 0 && - p->type != RAZOR_PROPERTY_PROVIDES) + p->type != RAZOR_PROPERTY_PROVIDES && + strcmp(&pool[r->name], &upool[p->name]) > 0) p++; /* If there is more than one version of a provides, * seek to the end for the highest version. */ -- 1.7.1