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:
parent
b537beb60f
commit
8852734146
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue