font: Cast away compiler warning
authorMatt Fleming <matt.fleming@intel.com>
Tue, 3 Apr 2012 14:14:24 +0000 (15:14 +0100)
committerMatt Fleming <matt.fleming@intel.com>
Tue, 17 Apr 2012 09:58:35 +0000 (10:58 +0100)
font.c: In function ‘adjust_screen’:
font.c:167:30: warning: initialization makes pointer from integer without a cast

Signed-off-by: Matt Fleming <matt.fleming@intel.com>
core/font.c

index 0eeb90f..6ef46c4 100644 (file)
@@ -164,7 +164,7 @@ void use_font(void)
 void adjust_screen(void)
 {
        com32sys_t ireg, oreg;
-       volatile uint8_t *vidrows = BIOS_vidrows;
+       volatile uint8_t *vidrows = (volatile uint8_t *)BIOS_vidrows;
        uint8_t rows, cols;
 
        rows = *vidrows;