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
This commit is contained in:
parent
fbd5f73b3e
commit
c1c8f8cc4f
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue