This fixes warnings with gcc and msvc.
Showing the changes to codec/decoder/core/src/decode_slice.cpp (1 of 2 files). Show all
Unified · Split
| @@ -418,7 +418,7 @@ int32_t ParseIntra4x4Mode (PWelsDecoderContext pCtx, PWelsNeighAvail pNeighAvail · 417 unmodified lines | ||
| 418 | 418 | iBestMode = kiPredMode; |
| 419 | 419 | } else { |
| 420 | 420 | WELS_READ_VERIFY (BsGetBits (pBs, 3, &uiCode)); |
| 421 | − iBestMode = uiCode + (uiCode >= kiPredMode); | |
| 421 | + iBestMode = uiCode + ((int32_t) uiCode >= kiPredMode); | |
| 422 | 422 | } |
| 423 | 423 | } |
| 424 | 424 | |