From 30586dffa9b1be2ce90bdda4a96c0f66551caa60 Mon Sep 17 00:00:00 2001 From: James Mudd Date: Tue, 19 Nov 2024 22:22:08 +0000 Subject: [PATCH] Fix indexing mistake --- .../java/io/jhdf/dataset/chunked/indexing/FixedArrayIndex.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jhdf/src/main/java/io/jhdf/dataset/chunked/indexing/FixedArrayIndex.java b/jhdf/src/main/java/io/jhdf/dataset/chunked/indexing/FixedArrayIndex.java index 6947e956..8199bf91 100644 --- a/jhdf/src/main/java/io/jhdf/dataset/chunked/indexing/FixedArrayIndex.java +++ b/jhdf/src/main/java/io/jhdf/dataset/chunked/indexing/FixedArrayIndex.java @@ -150,7 +150,7 @@ private FixedArrayDataBlock(FixedArrayIndex fixedArrayIndex, HdfBackingStorage h } } else if (clientId == 1) { // Filtered for (int i = 0; i < pageSize; i++) { - readFiltered(fixedArrayIndex, hdfBackingStorage, bb, i); + readFiltered(fixedArrayIndex, hdfBackingStorage, bb, chunkIndex++); } } else { throw new HdfException("Unrecognized client ID = " + clientId);