1.1 --- a/vm/src/test/java/org/apidesign/vm4brwsr/Numbers.java Wed Jan 30 22:23:21 2013 +0100
1.2 +++ b/vm/src/test/java/org/apidesign/vm4brwsr/Numbers.java Thu Jan 31 13:42:14 2013 +0100
1.3 @@ -72,8 +72,12 @@
1.4 return Long.MAX_VALUE;
1.5 }
1.6
1.7 - public static long addL(long x, long y) {
1.8 - return (x + y);
1.9 + public static long addL(byte[] arrX, byte[] arrY) throws IOException {
1.10 + ByteArrayInputStream isX = new ByteArrayInputStream(arrX);
1.11 + DataInputStream disX = new DataInputStream(isX);
1.12 + ByteArrayInputStream isY = new ByteArrayInputStream(arrY);
1.13 + DataInputStream disY = new DataInputStream(isY);
1.14 + return (disX.readLong() + disY.readLong());
1.15 }
1.16
1.17 public static long subL(long x, long y) {