History

Add casts to avoid warnings about comparison between signed and unsigned

This fixes warnings with gcc and msvc.

Martin Storsjö committed 12 years ago

Commit 8ffacf01 parent 0e954122 files · +2 −2Browse files

Showing the changes to codec/decoder/core/src/decode_slice.cpp (1 of 2 files). Show all

Unified · Split

codec/decoder/core/src/decode_slice.cpp+1−1
@@ -418,7 +418,7 @@ int32_t ParseIntra4x4Mode (PWelsDecoderContext pCtx, PWelsNeighAvail pNeighAvail · 417 unmodified lines
418418 iBestMode = kiPredMode;
419419 } else {
420420 WELS_READ_VERIFY (BsGetBits (pBs, 3, &uiCode));
421− iBestMode = uiCode + (uiCode >= kiPredMode);
421+ iBestMode = uiCode + ((int32_t) uiCode >= kiPredMode);
422422 }
423423 }
424424

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