Skip to content

Commit 4c0a01d

Browse files
committed
fix typo
1 parent 237c67d commit 4c0a01d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/h5cpp/node/dataset.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ std::uint32_t Dataset::read_chunk(T &data,
10631063
static_cast<hid_t>(dtpl),
10641064
offset.data(),
10651065
&filter_mask,
1066-
dataspace::ptr(data), byte_size)<0)
1066+
dataspace::ptr(data), &byte_size)<0)
10671067
{
10681068
std::stringstream ss;
10691069
ss<<"Failure to read chunk data from dataset ["<<link().path()<<"]!";

test/node/dataset_direct_chunk_test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ SCENARIO("testing dataset access via chunks") {
118118
REQUIRE(frame == read_chunk_value);
119119
}
120120
AND_THEN("we can read chunk the data back with given buffer byte_size") {
121-
UShorts read_chunk_value(xdim * ydim);
121+
UShorts read_chunk_svalue(xdim * ydim);
122122
for (long long unsigned int i = 0; i != nframe; i++) {
123-
dataset.read_chunk(read_chunk_value, xdim * ydim * sizeof(UShorts), {i, 0, 0});
124-
REQUIRE(frame == read_chunk_value);
123+
dataset.read_chunk(read_chunk_svalue, xdim * ydim * sizeof(UShorts), {i, 0, 0});
124+
REQUIRE(frame == read_chunk_svalue);
125125
}
126126
}
127127
}

0 commit comments

Comments
 (0)