mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 20:27:23 +07:00
drm/amd/display: fix a 32 bit shift meant to be 64 warning
Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
a21ddec61c
commit
7ea034ce81
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user