aboutsummaryrefslogtreecommitdiff
path: root/gdb/memrange.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/memrange.c')
-rw-r--r--gdb/memrange.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/memrange.c b/gdb/memrange.c
index e4fbb52..04db5da 100644
--- a/gdb/memrange.c
+++ b/gdb/memrange.c
@@ -46,8 +46,8 @@ address_in_mem_range (CORE_ADDR address, const struct mem_range *r)
static int
compare_mem_ranges (const void *ap, const void *bp)
{
- const struct mem_range *r1 = ap;
- const struct mem_range *r2 = bp;
+ const struct mem_range *r1 = (const struct mem_range *) ap;
+ const struct mem_range *r2 = (const struct mem_range *) bp;
if (r1->start > r2->start)
return 1;