summaryrefslogtreecommitdiffstats
path: root/libdwfl/dwfl_module.c
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2006-12-29 20:44:16 +0000
committerRoland McGrath <[email protected]>2006-12-29 20:44:16 +0000
commit7000880e78fd68f00accb80e11437b824884aea4 (patch)
tree099b0e0387bee6a0bb9e66cb7791abf75d8cbe68 /libdwfl/dwfl_module.c
parenta33c3013e80383342825c1af7fad2a6f3979ceee (diff)
remove extra log entry
Diffstat (limited to 'libdwfl/dwfl_module.c')
-rw-r--r--libdwfl/dwfl_module.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libdwfl/dwfl_module.c b/libdwfl/dwfl_module.c
index 0cccb5c0..16c616d2 100644
--- a/libdwfl/dwfl_module.c
+++ b/libdwfl/dwfl_module.c
@@ -172,7 +172,9 @@ compare_modules (const void *a, const void *b)
if (m2 == NULL)
return 1;
- if (m1->low_addr < m2->low_addr
+ /* No signed difference calculation is correct here, since the
+ terms are unsigned and could be more than INT64_MAX apart. */
+ if (m1->low_addr < m2->low_addr)
return -1;
if (m1->low_addr > m2->low_addr)
return 1;