Skip to content

Commit

Permalink
Fix offset calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Pals committed Jan 30, 2020
1 parent 3eb420d commit 7cd36a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/hdf/io/Hdf5Handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void Hdf5Handler::initialize(
int_type.getOrder(),
int_type.getSign(),
int_type.getSize(),
int_type.getOffset(),
ctype.getMemberOffset(j),
Dimension::Type(unsigned(Dimension::BaseType::Unsigned) | int_type.getSize()))
);
std::cout << "uint, s:" << int_type.getSize() << ", e:" << int_type.getOrder();
Expand All @@ -116,7 +116,7 @@ void Hdf5Handler::initialize(
int_type.getOrder(),
int_type.getSign(),
int_type.getSize(),
int_type.getOffset(),
ctype.getMemberOffset(j),
Dimension::Type(unsigned(Dimension::BaseType::Signed) | int_type.getSize()))
);
std::cout << "sint, s:" << int_type.getSize() << ", e:" << int_type.getOrder();
Expand All @@ -131,7 +131,7 @@ void Hdf5Handler::initialize(
float_type.getOrder(),
H5T_SGN_ERROR,
float_type.getSize(),
float_type.getOffset(),
ctype.getMemberOffset(j),
Dimension::Type(unsigned(Dimension::BaseType::Floating) | float_type.getSize()))
);
std::cout << "float, s:" << float_type.getSize() << ", e:" << float_type.getOrder();
Expand Down

0 comments on commit 7cd36a6

Please sign in to comment.