diff options
author | Martin Storsjo <martin@martin.st> | 2018-03-06 12:35:43 +0200 |
---|---|---|
committer | Martin Storsjo <martin@martin.st> | 2018-03-06 12:49:20 +0200 |
commit | 5891b75b311c8fb27706cc2128a49d10dc477dca (patch) | |
tree | acc6b86ceea9e102cf43151c46bb0fe01f4291bd /libFDK | |
parent | 54da05eb397725f93754094392f2772892a847db (diff) | |
download | fdk-aac-5891b75b311c8fb27706cc2128a49d10dc477dca.tar.gz fdk-aac-5891b75b311c8fb27706cc2128a49d10dc477dca.tar.bz2 fdk-aac-5891b75b311c8fb27706cc2128a49d10dc477dca.zip |
Fix warnings with MSVC about mismatch between signed and unsigned in a header
Diffstat (limited to 'libFDK')
-rw-r--r-- | libFDK/include/FDK_bitstream.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libFDK/include/FDK_bitstream.h b/libFDK/include/FDK_bitstream.h index 19bc864..e75e570 100644 --- a/libFDK/include/FDK_bitstream.h +++ b/libFDK/include/FDK_bitstream.h @@ -245,7 +245,7 @@ FDK_INLINE UINT FDKreadBits(HANDLE_FDK_BITSTREAM hBitStream, if (hBitStream->BitsInCache <= numberOfBits) { - const UINT validBits = FDK_getValidBits (&hBitStream->hBitBuf) ; + const INT validBits = FDK_getValidBits (&hBitStream->hBitBuf) ; const INT freeBits = (CACHE_BITS-1) - hBitStream->BitsInCache ; const INT bitsToRead = (freeBits <= validBits) ? freeBits : validBits ; @@ -309,7 +309,7 @@ inline UINT FDKread2Bits(HANDLE_FDK_BITSTREAM hBitStream) UINT BitsInCache = hBitStream->BitsInCache; if (BitsInCache < 2) /* Comparison changed from 'less-equal' to 'less' */ { - const UINT validBits = FDK_getValidBits (&hBitStream->hBitBuf) ; + const INT validBits = FDK_getValidBits (&hBitStream->hBitBuf) ; const INT freeBits = (CACHE_BITS-1) - BitsInCache ; const INT bitsToRead = (freeBits <= validBits) ? freeBits : validBits ; |