aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vbe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vbe.c b/vbe.c
index 9c00d0b..5029020 100644
--- a/vbe.c
+++ b/vbe.c
@@ -85,7 +85,7 @@ static char *get_str(char *buf, unsigned buf_size, char *v, int offset)
return canon_str(buf, len);
}
-#define GET_WORD(ADDR, OFS) ((ADDR)[OFS] + ((ADDR)[(OFS) + 1] << 8))
+#define GET_WORD(ADDR, OFS) (((unsigned char *)ADDR)[OFS] + (((unsigned char *)ADDR)[(OFS) + 1] << 8))
static void parse_vbe_info(char *v)
{