Fixed V547: Expression is always false

'ov_read' function returns a signed long, that is stored in an unsigned integer 'bytesRead'. Comparsion 'bytesRead < 0' doesn't make sense, since an unsigned number >= 0.
This commit is contained in:
Phillip Khandeliants 2017-04-27 11:29:03 +03:00
parent cf776cf8b0
commit 20e63ad763

View file

@ -198,7 +198,7 @@ S32 SFXVorbisStream::read( U8 *buffer,
// requests longer than this.
const U32 MAXREAD = 4096;
U32 bytesRead = 0;
S64 bytesRead = 0;
U32 offset = 0;
U32 bytesToRead = 0;