diff options
author | Jan-Benedict Glaw <jbglaw@getslash.de> | 2014-11-19 14:13:30 +0100 |
---|---|---|
committer | Jan-Benedict Glaw <jbglaw@getslash.de> | 2014-11-19 14:13:30 +0100 |
commit | e44c58ce2fdf07b5c0acb7eab7155dca48d0e6da (patch) | |
tree | 334702d381222bf47d86c7d84927384fc1dc75ef /binutils/dwarf.c | |
parent | 54a28c4ce5b18cccee584d7a5e26df750edfafe1 (diff) | |
download | gdb-e44c58ce2fdf07b5c0acb7eab7155dca48d0e6da.zip gdb-e44c58ce2fdf07b5c0acb7eab7155dca48d0e6da.tar.gz gdb-e44c58ce2fdf07b5c0acb7eab7155dca48d0e6da.tar.bz2 |
Fix signedness warning
This is the updated version using uintptr_t as Alan Modra suggested.
2014-11-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
* dwarf.c (process_extended_line_op): Fix signedness warning.
Diffstat (limited to 'binutils/dwarf.c')
-rw-r--r-- | binutils/dwarf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c index e1e2b35..7f3a568 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; |