diff options
Diffstat (limited to 'gcc/java')
-rw-r--r-- | gcc/java/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/java/jcf-parse.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 364ddb3..f4f8a2a 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,7 @@ +2009-04-24 Ian Lance Taylor <iant@google.com> + + * jcf-parse.c (handle_constant): Add cast to enum type. + 2009-04-21 Taras Glek <tglek@mozilla.com> * builtins.c: Update GTY annotations to new syntax diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c index 42b53c8..e3b9331 100644 --- a/gcc/java/jcf-parse.c +++ b/gcc/java/jcf-parse.c @@ -1,6 +1,6 @@ /* Parser for Java(TM) .class files. Copyright (C) 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, - 2005, 2006, 2007, 2008 Free Software Foundation, Inc. + 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. This file is part of GCC. @@ -507,7 +507,7 @@ handle_constant (JCF *jcf, int index, enum cpool_tag purpose) if (! CPOOL_INDEX_IN_RANGE (&jcf->cpool, index)) error ("<constant pool index %d not in range>", index); - kind = JPOOL_TAG (jcf, index); + kind = (enum cpool_tag) JPOOL_TAG (jcf, index); if ((kind & ~CONSTANT_ResolvedFlag) != purpose) { |