diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-03-24 04:18:28 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-03-24 04:18:28 +0000 |
commit | d2b1deda92d1d95dfda169e9a90ab491b13223b0 (patch) | |
tree | 07c8b04ef5b4c63fb4da78df6dcd3043503512aa /addr2line.c | |
parent | d550d7224927d7dfccd085103bebc619034da43c (diff) | |
download | ruby-d2b1deda92d1d95dfda169e9a90ab491b13223b0.tar.gz |
* addr2line.c (parse_debug_line_cu): explicitly specify signed char
because DWARF's line_Base is signed char and char maybe unsigned.
patched by Rei Odaira. [ruby-dev:48068] [Bug #9654]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'addr2line.c')
-rw-r--r-- | addr2line.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addr2line.c b/addr2line.c index cee2640e1e..1dabfac785 100644 --- a/addr2line.c +++ b/addr2line.c @@ -294,7 +294,7 @@ parse_debug_line_cu(int num_traces, void **traces, is_stmt = default_is_stmt = *(unsigned char *)p; p++; - line_base = *(char *)p; + line_base = *(signed char *)p; p++; line_range = *(unsigned char *)p; |