History

Use an unsigned variable for comparison with unsigned values

This avoids warnings about comparison between signed and unsigned.

Martin Storsjö committed 11 years ago

Commit 8de54071 parent 328094a1 file · +1 −1Browse files

Showing the changes to codec/decoder/core/src/au_parser.cpp (1 of 1 file). Show all

Unified · Split

codec/decoder/core/src/au_parser.cpp+1−1
@@ -1437,7 +1437,7 @@ int32_t ParseScalingList (PSps pSps, PBitStringAux pBs, bool bPPS, bool* pScalin · 1436 unmodified lines
1437 defaultScaling[2] = bInit ? pSps->iScalingList8x8[0] : g_kuiDequantScaling8x8Default[0];1437 defaultScaling[2] = bInit ? pSps->iScalingList8x8[0] : g_kuiDequantScaling8x8Default[0];
1438 defaultScaling[3] = bInit ? pSps->iScalingList8x8[1] : g_kuiDequantScaling8x8Default[1];1438 defaultScaling[3] = bInit ? pSps->iScalingList8x8[1] : g_kuiDequantScaling8x8Default[1];
1439 1439
1440 for (int i = 0; i < uiScalingListNum; i++) {1440 for (unsigned int i = 0; i < uiScalingListNum; i++) {
1441 WELS_READ_VERIFY (BsGetOneBit (pBs, &uiCode));1441 WELS_READ_VERIFY (BsGetOneBit (pBs, &uiCode));
1442 pScalingListPresentFlag[i] = !!uiCode;1442 pScalingListPresentFlag[i] = !!uiCode;
1443 if (!!uiCode) {1443 if (!!uiCode) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t