msvcirt: Avoid superfluous comparison in some compilers.

Signed-off-by: Iván Matellanes <matellanesivan@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Iván Matellanes 2016-03-28 11:19:08 +01:00 committed by Alexandre Julliard
parent b537beb60f
commit 8852734146
1 changed files with 1 additions and 1 deletions

View File

@ -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) {