From 20e63ad7632b3ff7d113993ed5f39de78a055358 Mon Sep 17 00:00:00 2001 From: Phillip Khandeliants Date: Thu, 27 Apr 2017 11:29:03 +0300 Subject: [PATCH] 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. --- Engine/source/sfx/media/sfxVorbisStream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/sfx/media/sfxVorbisStream.cpp b/Engine/source/sfx/media/sfxVorbisStream.cpp index 1c9af326f..3a2f12ba6 100644 --- a/Engine/source/sfx/media/sfxVorbisStream.cpp +++ b/Engine/source/sfx/media/sfxVorbisStream.cpp @@ -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;