Use the right data type for some local variables

pDecEngine->uiOffset is an uint64_t as well, and *pSliceNum
is uint32_t.

This fixes warnings about comparison between signed and unsigned
in gcc and msvc.
This commit is contained in:
Martin Storsjö
2014-11-03 10:54:27 +02:00
parent 2951a7f3a3
commit 0e9541247a
2 changed files with 2 additions and 2 deletions

View File

@@ -214,7 +214,7 @@ int32_t DecodeBypassCabac (PWelsCabacDecEngine pDecEngine, uint32_t& uiBinVal) {
int32_t DecodeTerminateCabac (PWelsCabacDecEngine pDecEngine, uint32_t& uiBinVal) {
int32_t iErrorInfo = ERR_NONE;
uint64_t uiRange = pDecEngine->uiRange - 2;
int64_t uiOffset = pDecEngine->uiOffset;
uint64_t uiOffset = pDecEngine->uiOffset;
if (uiOffset >= (uiRange << pDecEngine->iBitsLeft)) {
uiBinVal = 1;