aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/except.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java/except.c')
-rw-r--r--gcc/java/except.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/java/except.c b/gcc/java/except.c
index 614587d3362..0de4c8af0b3 100644
--- a/gcc/java/except.c
+++ b/gcc/java/except.c
@@ -153,8 +153,7 @@ link_handler (range, outer)
/* Handle overlapping ranges by splitting the new range. */
if (range->start_pc < outer->start_pc || range->end_pc > outer->end_pc)
{
- struct eh_range *h
- = (struct eh_range *) xmalloc (sizeof (struct eh_range));
+ struct eh_range *h = xmalloc (sizeof (struct eh_range));
if (range->start_pc < outer->start_pc)
{
h->start_pc = range->start_pc;
@@ -286,7 +285,7 @@ add_handler (start_pc, end_pc, handler, type)
prev = ptr;
}
- h = (struct eh_range *) xmalloc (sizeof (struct eh_range));
+ h = xmalloc (sizeof (struct eh_range));
h->start_pc = start_pc;
h->end_pc = end_pc;
h->first_child = NULL;