summaryrefslogtreecommitdiff
path: root/gcc/java/constants.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java/constants.c')
-rw-r--r--gcc/java/constants.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/gcc/java/constants.c b/gcc/java/constants.c
index 83c2e5528d6..23f99572c92 100644
--- a/gcc/java/constants.c
+++ b/gcc/java/constants.c
@@ -47,8 +47,8 @@ set_constant_entry (cpool, index, tag, value)
if (cpool->data == NULL)
{
cpool->capacity = 100;
- cpool->tags = (uint8*) xmalloc (sizeof(uint8) * cpool->capacity);
- cpool->data = (jword*) xmalloc (sizeof(jword) * cpool->capacity);
+ cpool->tags = xmalloc (sizeof(uint8) * cpool->capacity);
+ cpool->data = xmalloc (sizeof(jword) * cpool->capacity);
cpool->count = 1;
}
if (index >= cpool->capacity)
@@ -56,10 +56,8 @@ set_constant_entry (cpool, index, tag, value)
cpool->capacity *= 2;
if (index >= cpool->capacity)
cpool->capacity = index + 10;
- cpool->tags = (uint8*) xrealloc (cpool->tags,
- sizeof(uint8) * cpool->capacity);
- cpool->data = (jword*) xrealloc (cpool->data,
- sizeof(jword) * cpool->capacity);
+ cpool->tags = xrealloc (cpool->tags, sizeof(uint8) * cpool->capacity);
+ cpool->data = xrealloc (cpool->data, sizeof(jword) * cpool->capacity);
}
if (index >= cpool->count)
cpool->count = index + 1;