Commit c1c8f8cc by Alexandre Petit-Bianco Committed by Alexandre Petit-Bianco

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
parent fbd5f73b
2000-06-29 Alexandre Petit-Bianco <apbianco@cygnus.com> 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 * parse.y (verify_constructor_super): Use loop variable
`m_arg_type' initialized with `mdecl_arg_type'. `m_arg_type' initialized with `mdecl_arg_type'.
......
...@@ -850,7 +850,7 @@ push_long_const (lo, hi, state) ...@@ -850,7 +850,7 @@ push_long_const (lo, hi, state)
OP1(OPCODE_lconst_0 + lo); OP1(OPCODE_lconst_0 + lo);
} }
else if ((hi == 0 && (jword)(lo & 0xFFFFFFFF) < 32768) 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); push_int_const (lo, state);
RESERVE (1); RESERVE (1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment