aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java/buffer.c')
-rw-r--r--gcc/java/buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/java/buffer.c b/gcc/java/buffer.c
index 74bd5adcd15..170cc04540a 100644
--- a/gcc/java/buffer.c
+++ b/gcc/java/buffer.c
@@ -37,14 +37,14 @@ buffer_grow (bufp, size)
{
if (size < 120)
size = 120;
- bufp->data = (unsigned char*) xmalloc (size);
+ bufp->data = xmalloc (size);
bufp->ptr = bufp->data;
}
else
{
int index = bufp->ptr - bufp->data;
size += 2 * (bufp->limit - bufp->data);
- bufp->data = (unsigned char *) xrealloc (bufp->data, size);
+ bufp->data = xrealloc (bufp->data, size);
bufp->ptr = bufp->data + index;
}
bufp->limit = bufp->data + size;