diff options
author | Jens-Michael Hoffmann <jensmh@gmx.de> | 2002-11-18 15:46:34 +0000 |
---|---|---|
committer | Andrew Haley <aph@gcc.gnu.org> | 2002-11-18 15:46:34 +0000 |
commit | a92cb0c3d32169727f3b3a0543bda241663d1244 (patch) | |
tree | eb8e95ee304089b9733a38cca3a66ca60c241853 /gcc/java/constants.c | |
parent | e7e0de7e333f5389009e7f7b9894c97035021609 (diff) | |
download | gcc-a92cb0c3d32169727f3b3a0543bda241663d1244.zip gcc-a92cb0c3d32169727f3b3a0543bda241663d1244.tar.gz gcc-a92cb0c3d32169727f3b3a0543bda241663d1244.tar.bz2 |
buffer.c: Remove unnecessary casts.
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.
From-SVN: r59224
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 83c2e55..23f9957 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; |