From: Jan-Benedict Glaw Date: Wed, 19 Nov 2014 13:13:30 +0000 (+0100) Subject: Fix signedness warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e44c58ce2fdf07b5c0acb7eab7155dca48d0e6da;p=binutils-gdb.git Fix signedness warning This is the updated version using uintptr_t as Alan Modra suggested. 2014-11-18 Jan-Benedict Glaw * dwarf.c (process_extended_line_op): Fix signedness warning. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 7aa8ad61b0a..9d3fbc1270a 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2014-11-18 Jan-Benedict Glaw + + * dwarf.c (process_extended_line_op): Fix signedness warning. + 2014-11-18 Nick Clifton PR binutuls/17605 diff --git a/binutils/dwarf.c b/binutils/dwarf.c index e1e2b350f0e..7f3a568e813 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -416,7 +416,7 @@ process_extended_line_op (unsigned char * data, len = read_uleb128 (data, & bytes_read, end); data += bytes_read; - if (len == 0 || data == end || len > (end - data)) + if (len == 0 || data == end || len > (uintptr_t) (end - data)) { warn (_("Badly formed extended line op encountered!\n")); return bytes_read;