diff options
Diffstat (limited to 'xbmc/filesystem/RarFile.cpp')
-rw-r--r-- | xbmc/filesystem/RarFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/filesystem/RarFile.cpp b/xbmc/filesystem/RarFile.cpp index d88a724638..5c01e182a3 100644 --- a/xbmc/filesystem/RarFile.cpp +++ b/xbmc/filesystem/RarFile.cpp @@ -302,7 +302,7 @@ ssize_t CRarFile::Read(void *lpBuf, size_t uiBufSize) int64_t uicBufSize = uiBufSize; if (m_iDataInBuffer > 0) { - int64_t iCopy = uiBufSize<m_iDataInBuffer?uiBufSize:m_iDataInBuffer; + int64_t iCopy = (uiBufSize < static_cast<size_t>(m_iDataInBuffer)) ? uiBufSize : m_iDataInBuffer; memcpy(lpBuf,m_szStartOfBuffer,size_t(iCopy)); m_szStartOfBuffer += iCopy; m_iDataInBuffer -= int(iCopy); |