Andrey Gusev : usp10: Remove redundant comparison.

Alexandre Julliard julliard at winehq.org
Tue Oct 10 14:41:20 CDT 2017


Module: wine
Branch: master
Commit: a34adbefe452769d47377904c8269a08f02f3c05
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a34adbefe452769d47377904c8269a08f02f3c05

Author: Andrey Gusev <andrey.goosev at gmail.com>
Date:   Tue Oct 10 16:44:17 2017 +0300

usp10: Remove redundant comparison.

Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
Signed-off-by: Aric Stewart <aric at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/usp10/usp10.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/usp10/usp10.c b/dlls/usp10/usp10.c
index 0b8c28e..59abbad 100644
--- a/dlls/usp10/usp10.c
+++ b/dlls/usp10/usp10.c
@@ -2641,7 +2641,7 @@ HRESULT WINAPI ScriptCPtoX(int iCP,
     iPosX = 0.0;
     for (item=0; item < iCP && item < cChars; item++)
     {
-        if (iSpecial == -1 && (iCluster == -1 || (iCluster != -1 && iCluster+clust_size <= item)))
+        if (iSpecial == -1 && (iCluster == -1 || iCluster+clust_size <= item))
         {
             int check;
             int clust = pwLogClust[item];




More information about the wine-cvs mailing list