From b29704706023a78c7fd4381d1e90ef74df364fa4 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Thu, 5 Jan 2017 15:52:13 +0200 Subject: [PATCH] Removed useless integer type size expansion Fixed Apple's Clang warnings: absolute value function 'abs' given an argument of type 'long long' but has parameter of type 'int' which may cause truncation of value --- src/gl/hqnx/common.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gl/hqnx/common.h b/src/gl/hqnx/common.h index c3e7005717..fa807df771 100644 --- a/src/gl/hqnx/common.h +++ b/src/gl/hqnx/common.h @@ -48,9 +48,9 @@ static inline uint32_t rgb_to_yuv(uint32_t c) /* Test if there is difference in color */ static inline int yuv_diff(uint32_t yuv1, uint32_t yuv2) { - return (( abs((int64_t)(yuv1 & Ymask) - (int64_t)(yuv2 & Ymask)) > trY ) || - ( abs((int64_t)(yuv1 & Umask) - (int64_t)(yuv2 & Umask)) > trU ) || - ( abs((int64_t)(yuv1 & Vmask) - (int64_t)(yuv2 & Vmask)) > trV ) ); + return (( abs((int32_t)(yuv1 & Ymask) - (int32_t)(yuv2 & Ymask)) > trY ) || + ( abs((int32_t)(yuv1 & Umask) - (int32_t)(yuv2 & Umask)) > trU ) || + ( abs((int32_t)(yuv1 & Vmask) - (int32_t)(yuv2 & Vmask)) > trV ) ); } static inline int Diff(uint32_t c1, uint32_t c2)