You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/04/25 16:06:41 UTC

svn commit: r768534 - /commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Pointer32.java

Author: mturk
Date: Sat Apr 25 14:06:41 2009
New Revision: 768534

URL: http://svn.apache.org/viewvc?rev=768534&view=rev
Log:
Fix native prototypes

Modified:
    commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Pointer32.java

Modified: commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Pointer32.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Pointer32.java?rev=768534&r1=768533&r2=768534&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Pointer32.java (original)
+++ commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Pointer32.java Sat Apr 25 14:06:41 2009
@@ -107,7 +107,7 @@
             throw new IndexOutOfBoundsException();
         else if ((int)(dstPos + length) > d32.PLENGTH)
             throw new IndexOutOfBoundsException();
-        copy0(POINTER + (int)srcPos, d32.POINTER + (int)dstPos, length);
+        copy0(POINTER + (int)srcPos, d32.POINTER + (int)dstPos, (int)length);
     }
 
     public void copy(long srcPos, byte[] dst,
@@ -140,7 +140,7 @@
             throw new IndexOutOfBoundsException();
         else if ((int)(srcPos + length) > s32.PLENGTH)
             throw new IndexOutOfBoundsException();
-        move0(s32.POINTER + (int)dstPos, POINTER + (int)srcPos, length);
+        move0(s32.POINTER + (int)dstPos, POINTER + (int)srcPos, (int)length);
     }
 
     public void move(byte[] src, int srcPos,