This is an automated email from the ASF dual-hosted git repository.

leerho pushed a commit to branch leerho-patch-1
in repository https://gitbox.apache.org/repos/asf/datasketches-memory.git

commit a6fb5727bc3d23bb01b7b0e9966714ecf3b0b0cc
Author: Lee Rhodes <[email protected]>
AuthorDate: Wed May 8 10:16:57 2024 -0700

    Update Memory.java
    
    Because of slight differences between the current state of master vs branch 
2.2.X, the fix for master is slightly different for master than for what will 
go into 2.2.X for the 2.2.1 bug fix release.
---
 .../src/main/java/org/apache/datasketches/memory/Memory.java            | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/Memory.java
 
b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/Memory.java
index ea12620..eed7a4e 100644
--- 
a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/Memory.java
+++ 
b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/Memory.java
@@ -195,7 +195,7 @@ public interface Memory extends Resource {
     negativeCheck(offsetBytes, "offsetBytes");
     negativeCheck(lengthBytes, "lengthBytes");
     ResourceImpl.checkBounds(offsetBytes, lengthBytes, array.length);
-    return BaseWritableMemoryImpl.wrapHeapArray(array, 0, lengthBytes, true, 
ByteOrder.nativeOrder(), null);
+    return BaseWritableMemoryImpl.wrapHeapArray(array, offsetBytes, 
lengthBytes, true, ByteOrder.nativeOrder(), null);
   }
 
   /**


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to