From: Dmytro Laktyushkin Date: Mon, 23 Apr 2018 18:39:23 +0000 (-0400) Subject: drm/amd/display: fix a 32 bit shift meant to be 64 warning X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7ea034ce8188eaf61ce2b7d4e747e1f6e3bb8aa3;p=linux.git drm/amd/display: fix a 32 bit shift meant to be 64 warning Signed-off-by: Dmytro Laktyushkin Reviewed-by: Tony Cheng Acked-by: Harry Wentland Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/include/fixed31_32.h b/drivers/gpu/drm/amd/display/include/fixed31_32.h index bd8a30462258b..76f64e9104226 100644 --- a/drivers/gpu/drm/amd/display/include/fixed31_32.h +++ b/drivers/gpu/drm/amd/display/include/fixed31_32.h @@ -209,7 +209,7 @@ static inline struct fixed31_32 dc_fixpt_clamp( static inline struct fixed31_32 dc_fixpt_shl(struct fixed31_32 arg, unsigned char shift) { ASSERT(((arg.value >= 0) && (arg.value <= LLONG_MAX >> shift)) || - ((arg.value < 0) && (arg.value >= (LLONG_MIN / (1 << shift))))); + ((arg.value < 0) && (arg.value >= (LLONG_MIN / (1LL << shift))))); arg.value = arg.value << shift;