[MPlayer-cvslog] r37809 - trunk/vidix/unichrome_vid.c
reimar
subversion at mplayerhq.hu
Fri Feb 26 21:24:10 CET 2016
Author: reimar
Date: Fri Feb 26 21:24:09 2016
New Revision: 37809
Log:
unichrome_vid: avoid potentially undefined signed shift.
Happens due to default type conversion to int.
Avoids a Coverity warning.
Modified:
trunk/vidix/unichrome_vid.c
Modified: trunk/vidix/unichrome_vid.c
==============================================================================
--- trunk/vidix/unichrome_vid.c Fri Feb 26 21:13:57 2016 (r37808)
+++ trunk/vidix/unichrome_vid.c Fri Feb 26 21:24:09 2016 (r37809)
@@ -515,7 +515,7 @@ unichrome_init (void)
enable_app_io ();
outb (0x2f, 0x3c4);
- tmp = inb (0x3c5) << 0x18;
+ tmp = (unsigned)(inb (0x3c5)) << 0x18;
vio = map_phys_mem (tmp, 0x1000);
outb (0x16, 0x3c4);
More information about the MPlayer-cvslog
mailing list