jcf-reader.c: Don't expand JCF_readu4 inside the expansion of JCF_SKIP.

* jcf-reader.c: Don't expand JCF_readu4 inside the
	expansion of JCF_SKIP.

From-SVN: r59459
This commit is contained in:
Diego Novillo 2002-11-25 14:22:06 +00:00 committed by Diego Novillo
parent b82ddab44c
commit b4bbc8b7d3
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2002-11-25 Diego Novillo <dnovillo@redhat.com>
* jcf-reader.c: Don't expand JCF_readu4 inside the
expansion of JCF_SKIP.
2002-11-22 Tom Tromey <tromey@redhat.com>
* parse.y (patch_binop): Cast right hand side of shift expression

View file

@ -96,9 +96,11 @@ skip_attribute (jcf, number_of_attribute)
{
while (number_of_attribute--)
{
JCF_u4 N;
JCF_FILL (jcf, 6);
(void) JCF_readu2 (jcf);
JCF_SKIP (jcf, JCF_readu4 (jcf));
N = JCF_readu4 (jcf);
JCF_SKIP (jcf, N);
}
}
#endif