浏览代码

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.
Phillip Khandeliants 8 年之前
父节点
当前提交
20e63ad763
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Engine/source/sfx/media/sfxVorbisStream.cpp

+ 1 - 1
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;