aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-memset.c
diff options
context:
space:
mode:
authorAlex Hung <[email protected]>2024-06-05 10:51:37 -0600
committerAlex Deucher <[email protected]>2024-06-19 12:44:55 -0400
commitb62ec97d55e34942936653dafa1542ae9cfe14e3 (patch)
treec2ef4c5954a7a06a9b7460b5ef73646204be6ad8 /lib/test_fortify/write_overflow-memset.c
parent7cf24de30e8ab875abc92a81ff227ab9e5f4282e (diff)
drm/amd/display: Covert integers to double before divisions
Integer divisions result in loss of fractional and accuracy is lost when assigned or compared with double. It is necessary to perform double/integer instead or explicitly cast them to double. This fixes 54 UNINTENDED_INTEGER_DIVISION issues reported by Coverity. Reviewed-by: Harry Wentland <[email protected]> Acked-by: Hamza Mahfooz <[email protected]> Signed-off-by: Alex Hung <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memset.c')
0 files changed, 0 insertions, 0 deletions