Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[xsrc/trunk]: xsrc/external/mit/xf86-video-ati/dist/src shifting negative val...
details: https://anonhg.NetBSD.org/xsrc/rev/8a416a0906e4
branches: trunk
changeset: 10101:8a416a0906e4
user: christos <christos%NetBSD.org@localhost>
date: Thu Jan 31 20:40:41 2019 +0000
description:
shifting negative values is not portable.
diffstat:
external/mit/xf86-video-ati/dist/src/radeon_video.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 6977a2e11c28 -r 8a416a0906e4 external/mit/xf86-video-ati/dist/src/radeon_video.c
--- a/external/mit/xf86-video-ati/dist/src/radeon_video.c Thu Jan 31 20:40:16 2019 +0000
+++ b/external/mit/xf86-video-ati/dist/src/radeon_video.c Thu Jan 31 20:40:41 2019 +0000
@@ -2681,7 +2681,7 @@
* prevent the buffer offsets from exceeding the hardware limit of 128 MB.
* The base address must be aligned to a multiple of 4 MB.
*/
- base_offset = ((info->fbLocation + base_offset) & (~0 << 22)) -
+ base_offset = ((info->fbLocation + base_offset) & (~0U << 22)) -
info->fbLocation;
offset1 -= base_offset;
Home |
Main Index |
Thread Index |
Old Index