summaryrefslogtreecommitdiffstats
path: root/gcc/java/lex.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2002-06-27 01:03:24 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2002-06-27 01:03:24 +0000
commitc86bda20d0a8b2d95367f3b546ef6afbadf07437 (patch)
tree15978f910469556840d5209778de2abcf1a1200b /gcc/java/lex.c
parent5dec9c9e930f0fd5e9b8770710da0bc3d581b65b (diff)
downloadppe42-gcc-c86bda20d0a8b2d95367f3b546ef6afbadf07437.tar.gz
ppe42-gcc-c86bda20d0a8b2d95367f3b546ef6afbadf07437.zip
* lex.c (java_init_lex): Avoid incorrect hardcoded constant 11.
* parse.y (mark_parser_ctxt): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55016 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/lex.c')
-rw-r--r--gcc/java/lex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/java/lex.c b/gcc/java/lex.c
index 3810096e15d..d350e99907a 100644
--- a/gcc/java/lex.c
+++ b/gcc/java/lex.c
@@ -128,7 +128,7 @@ java_init_lex (finput, encoding)
CPC_INITIALIZER_LIST (ctxp) = CPC_STATIC_INITIALIZER_LIST (ctxp) =
CPC_INSTANCE_INITIALIZER_LIST (ctxp) = NULL_TREE;
- memset ((PTR) ctxp->modifier_ctx, 0, 11*sizeof (ctxp->modifier_ctx[0]));
+ memset ((PTR) ctxp->modifier_ctx, 0, sizeof (ctxp->modifier_ctx));
memset ((PTR) current_jcf, 0, sizeof (JCF));
ctxp->current_parsed_class = NULL;
ctxp->package = NULL_TREE;
OpenPOWER on IntegriCloud