Fix build.

This commit is contained in:
Xin LI 2015-09-04 08:04:12 +00:00
parent 9fc5c47fa5
commit 072d210fa1

View File

@ -1052,7 +1052,7 @@ doshn(struct magic_set *ms, int clazz, int swap, int fd, off_t off, int num,
/* Things we can determine when we seek */
switch (xsh_type) {
case SHT_NOTE:
if (xsh_size + xsh_offset > (uintmax_t)fsize) {
if (xsh_size + (uintmax_t)xsh_offset > (uintmax_t)fsize) {
if (file_printf(ms,
", note offset/size 0x%jx+0x%jx exceeds"
" file size 0x%jx", (uintmax_t)xsh_offset,