diff options
author | Alexandre Petit-Bianco <apbianco@cygnus.com> | 2000-06-30 03:50:25 +0000 |
---|---|---|
committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 2000-06-29 20:50:25 -0700 |
commit | c1c8f8cc4f1ece37f1f9a3d415fce73f6b5172ee (patch) | |
tree | 9cfc3899f28fd49d002a8245711aab0bb711bd97 | |
parent | fbd5f73b3e4b1f00827aa3e87dbbd9af2c844a91 (diff) | |
download | gcc-c1c8f8cc4f1ece37f1f9a3d415fce73f6b5172ee.zip gcc-c1c8f8cc4f1ece37f1f9a3d415fce73f6b5172ee.tar.gz gcc-c1c8f8cc4f1ece37f1f9a3d415fce73f6b5172ee.tar.bz2 |
jcf-write.c (push_long_const): Appropriately cast short negative constant to jword.
2000-06-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
* jcf-write.c (push_long_const): Appropriately cast short negative
constant to jword.
From-SVN: r34802
-rw-r--r-- | gcc/java/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/java/jcf-write.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index bac16b8..cd7b947 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,5 +1,10 @@ 2000-06-29 Alexandre Petit-Bianco <apbianco@cygnus.com> + * jcf-write.c (push_long_const): Appropriately cast short negative + constant to jword. + +2000-06-29 Alexandre Petit-Bianco <apbianco@cygnus.com> + * parse.y (verify_constructor_super): Use loop variable `m_arg_type' initialized with `mdecl_arg_type'. diff --git a/gcc/java/jcf-write.c b/gcc/java/jcf-write.c index 3fc8b30..ecd14af 100644 --- a/gcc/java/jcf-write.c +++ b/gcc/java/jcf-write.c @@ -850,7 +850,7 @@ push_long_const (lo, hi, state) OP1(OPCODE_lconst_0 + lo); } else if ((hi == 0 && (jword)(lo & 0xFFFFFFFF) < 32768) - || (hi == -1 && (jword)(lo & 0xFFFFFFFF) >= -32768)) + || (hi == -1 && (lo & 0xFFFFFFFF) >= (jword)-32768)) { push_int_const (lo, state); RESERVE (1); |