This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Hi,
On Fri, 2003-09-19 at 16:37, Roger Sayle wrote:
> A reduced test case would be great.
The following should give:
XO: 1
But (with your patch applied) gives:
X0: 65536.
public class ConstTest
{
public static void main(String[] args)
{
byte[] in = new byte[] { 1, 0, 0, 0 };
int i = 0;
int X0 = (in[i++] & 0xFF)
| (in[i++] & 0xFF) << 8
| (in[i++] & 0xFF) << 16
| in[i++] << 24;
System.out.println("X0: " + X0);
}
}
Cheers,
Mark
Attachment:
signature.asc
Description: This is a digitally signed message part
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |