diff options
author | Anssi Hannula <anssi@mandriva.org> | 2010-01-02 02:37:16 +0000 |
---|---|---|
committer | Anssi Hannula <anssi@mandriva.org> | 2010-01-02 02:37:16 +0000 |
commit | cb0c36a6375a1ba3dbeb07e7f30a5a565a2f4e05 (patch) | |
tree | 33ff9805cb9b5c59dec92e9dcbfbbb40f909528a | |
parent | bbec6da3b66ec8c11faa2e78838a1d5cd1fe65cc (diff) | |
download | monitor-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |