problem building a GCJ-friendly GNU Crypto
Mark Wielaard
mark@klomp.org
Sat Sep 20 19:13:00 GMT 2003
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://gcc.gnu.org/pipermail/java/attachments/20030920/a04f90c9/attachment.sig>
More information about the Java
mailing list