changeset 37034:cc50b327cffa

vidix: fix bad shift. Shifting an int left by 32 is undefined. Since it's not performance-critical, just do a 64 bit shift instead.
author reimar
date Sun, 06 Apr 2014 18:13:47 +0000
parents de0c74742689
children ef4a44d32a25
files vidix/radeon_vid.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vidix/radeon_vid.c	Sun Apr 06 18:10:31 2014 +0000
+++ b/vidix/radeon_vid.c	Sun Apr 06 18:13:47 2014 +0000
@@ -3394,7 +3394,7 @@
 		besr.graphics_key_clr=0;
 	}
 #ifdef RAGE128
-	besr.graphics_key_msk=(1<<dbpp)-1;
+	besr.graphics_key_msk=(1ull<<dbpp)-1;
 	besr.ckey_cntl = VIDEO_KEY_FN_TRUE|GRAPHIC_KEY_FN_NE|CMP_MIX_AND;
 #else
 	besr.graphics_key_msk=besr.graphics_key_clr;