=?UTF-8?Q?Iv=C3=A1n=20Matellanes=20?=: msvcirt: Avoid superfluous comparison in some compilers.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Mar 29 08:53:22 CDT 2016


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

Author: Iván Matellanes <matellanesivan at gmail.com>
Date:   Mon Mar 28 11:19:08 2016 +0100

msvcirt: Avoid superfluous comparison in some compilers.

Signed-off-by: Iván Matellanes <matellanesivan at gmail.com>
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

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

diff --git a/dlls/msvcirt/msvcirt.c b/dlls/msvcirt/msvcirt.c
index 09f488a..19c26fd 100644
--- a/dlls/msvcirt/msvcirt.c
+++ b/dlls/msvcirt/msvcirt.c
@@ -1383,7 +1383,7 @@ streampos __thiscall strstreambuf_seekoff(strstreambuf *this, streamoff offset,
 
     TRACE("(%p %d %d %d)\n", this, offset, dir, mode);
 
-    if (dir < SEEKDIR_beg || dir > SEEKDIR_end || !(mode & (OPENMODE_in|OPENMODE_out)))
+    if ((unsigned int)dir > SEEKDIR_end || !(mode & (OPENMODE_in|OPENMODE_out)))
         return EOF;
     /* read buffer */
     if (mode & OPENMODE_in) {




More information about the wine-cvs mailing list