cryptui: Remove idempotent operation (clang)
André Hentschel
nerv at dawncrow.de
Sat Sep 24 10:51:50 CDT 2011
indexLow is always 0
---
dlls/cryptui/main.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/cryptui/main.c b/dlls/cryptui/main.c
index 9df9800..c7caa4a 100644
--- a/dlls/cryptui/main.c
+++ b/dlls/cryptui/main.c
@@ -1969,8 +1969,7 @@ static struct OIDToString *findSupportedOID(LPCSTR oid)
int indexHigh = sizeof(oidMap) / sizeof(oidMap[0]) - 1, indexLow = 0, i;
struct OIDToString *ret = NULL;
- for (i = (indexLow + indexHigh) / 2; !ret && indexLow <= indexHigh;
- i = (indexLow + indexHigh) / 2)
+ for (i = indexHigh / 2; !ret && indexLow <= indexHigh; i = (indexLow + indexHigh) / 2)
{
int cmp;
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list