Author: mturk Date: Sat Apr 25 07:14:18 2009 New Revision: 768486 URL: http://svn.apache.org/viewvc?rev=768486&view=rev Log: Fix typos
Modified: commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Pointer64.java Modified: commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Pointer64.java URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Pointer64.java?rev=768486&r1=768485&r2=768486&view=diff ============================================================================== --- commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Pointer64.java (original) +++ commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Pointer64.java Sat Apr 25 07:14:18 2009 @@ -103,9 +103,9 @@ throw new NullPointerException(); else if (srcPos < 0L || dstPos < 0L || length == 0L) throw new IllegalArgumentException(); - else if (srcPos + length >= PLENGTH) + else if (srcPos + length > PLENGTH) throw new IndexOutOfBoundsException(); - else if (dstPos + length >- d64.PLENGTH) + else if (dstPos + length > d64.PLENGTH) throw new IndexOutOfBoundsException(); copy0(POINTER + srcPos, d64.POINTER + dstPos, length); } @@ -136,11 +136,11 @@ throw new NullPointerException(); else if (srcPos < 0L || dstPos < 0L || length == 0L) throw new IllegalArgumentException(); - else if (dstPos + length >= PLENGTH) + else if (dstPos + length > PLENGTH) throw new IndexOutOfBoundsException(); - else if (srcPos + length >- s64.PLENGTH) + else if (srcPos + length > s64.PLENGTH) throw new IndexOutOfBoundsException(); - move0(s64.POINTER + srcPos, POINTER + dstPos, length); + move0(s64.POINTER + dstPos, POINTER + srcPos, length); } public void move(byte[] src, int srcPos,