aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnssi Hannula <anssi@mandriva.org>2010-01-02 02:37:16 +0000
committerAnssi Hannula <anssi@mandriva.org>2010-01-02 02:37:16 +0000
commitcb0c36a6375a1ba3dbeb07e7f30a5a565a2f4e05 (patch)
tree33ff9805cb9b5c59dec92e9dcbfbbb40f909528a
parentbbec6da3b66ec8c11faa2e78838a1d5cd1fe65cc (diff)
downloadmonitor-edid-cb0c36a6375a1ba3dbeb07e7f30a5a565a2f4e05.tar
monitor-edid-cb0c36a6375a1ba3dbeb07e7f30a5a565a2f4e05.tar.gz
monitor-edid-cb0c36a6375a1ba3dbeb07e7f30a5a565a2f4e05.tar.bz2
monitor-edid-cb0c36a6375a1ba3dbeb07e7f30a5a565a2f4e05.tar.xz
monitor-edid-cb0c36a6375a1ba3dbeb07e7f30a5a565a2f4e05.zip
Fix signedness of integers read from char buffer.
-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)
{