diff options
author | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-11-18 15:46:34 +0000 |
---|---|---|
committer | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-11-18 15:46:34 +0000 |
commit | 0cc50a21073c6b5cd595aef9df548583b6334a08 (patch) | |
tree | eb8e95ee304089b9733a38cca3a66ca60c241853 /gcc/java/constants.c | |
parent | 73a8b678705422b54db1631f83b249392adf9a9c (diff) | |
download | gcc-0cc50a21073c6b5cd595aef9df548583b6334a08.tar.gz |
2002-11-14 Jens-Michael Hoffmann <jensmh@gmx.de>
* buffer.c: Remove unnecessary casts.
* check-init.c: Likewise.
* class.c: Likewise.
* constants.c: Likewise.
* decl.c: Likewise.
* except.c: Likewise.
* gjavah.c: Likewise.
* jcf-io.c: Likewise.
* jcf-parse.c: Likewise.
* jcf-path.c: Likewise.
* jvspec.c: Likewise.
* lang.c: Likewise.
* lex.c: Likewise.
* verify.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59224 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/constants.c')
-rw-r--r-- | gcc/java/constants.c | 10 |
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; |