diff options
author | Chih-Hung Hsieh <[email protected]> | 2015-09-04 12:04:11 -0700 |
---|---|---|
committer | Mark Wielaard <[email protected]> | 2015-09-09 13:26:23 +0200 |
commit | 4169187fe3abfda5b7df3eb39ab6bc15d08e13a1 (patch) | |
tree | 7242a01ffee2897e36d4fdf74139fab33270ba04 | |
parent | b85f80ab687044ece15d51de8a5e7f63bc1d3fa9 (diff) |
libdwfl: Replace abs with llabs for int64_t values.
Signed-off-by: Chih-Hung Hsieh <[email protected]>
Signed-off-by: Mark Wielaard <[email protected]>
-rw-r--r-- | libdwfl/ChangeLog | 4 | ||||
-rw-r--r-- | libdwfl/frame_unwind.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog index 3e36aa75..2c763698 100644 --- a/libdwfl/ChangeLog +++ b/libdwfl/ChangeLog @@ -1,3 +1,7 @@ +2015-09-04 Chih-Hung Hsieh <[email protected] + + * frame_unwind.c (expr_eval): Use llabs instead of abs. + 2015-08-14 Dodji Seketeli <[email protected]> * find-debuginfo.c (find_debuginfo_in_path): Try to locate the diff --git a/libdwfl/frame_unwind.c b/libdwfl/frame_unwind.c index 16cebd08..bd100b8f 100644 --- a/libdwfl/frame_unwind.c +++ b/libdwfl/frame_unwind.c @@ -342,7 +342,7 @@ expr_eval (Dwfl_Frame *state, Dwarf_Frame *frame, const Dwarf_Op *ops, return false; \ } \ break; - UNOP (DW_OP_abs, abs ((int64_t) val1)) + UNOP (DW_OP_abs, llabs ((int64_t) val1)) UNOP (DW_OP_neg, -(int64_t) val1) UNOP (DW_OP_not, ~val1) #undef UNOP |