diff --git a/vp9/common/vp9_common.h b/vp9/common/vp9_common.h index 04db7c0bb0ff0cf6d2eac4298f665c6b01b1bfb2..2788e66f46c5654b2260f11c9f43a1d4a0b195ee 100644 --- a/vp9/common/vp9_common.h +++ b/vp9/common/vp9_common.h @@ -49,7 +49,7 @@ extern "C" { #define vp9_zero_array(dest, n) vpx_memset(dest, 0, n * sizeof(*dest)) static INLINE uint8_t clip_pixel(int val) { - return (val > 255) ? 255u : (val < 0) ? 0u : val; + return (val > 255) ? 255 : (val < 0) ? 0 : val; } static INLINE int clamp(int value, int low, int high) {