From 512f9b631f5431a1be14e2a2966397cebd6f32df Mon Sep 17 00:00:00 2001 From: Jim Bankoski Date: Fri, 1 Aug 2014 06:28:00 -0700 Subject: [PATCH] removed sign mismatch warning Change-Id: Iaa40b472f6c1c48bb3bb47332b6fcf36d7f3c10e --- vp9/common/vp9_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vp9/common/vp9_common.h b/vp9/common/vp9_common.h index 04db7c0bb..2788e66f4 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) { -- GitLab