Skip to content

Commit

Permalink
fix: call OWALChanges.setShortValue() when setting a short value
Browse files Browse the repository at this point in the history
This affected big endian platforms. The test CellBTreeMultiValueV2TestIT
fails on big endian platforms without this fix.

Signed-off-by: Jonathan Albrecht <[email protected]>
  • Loading branch information
jonathan-albrecht-ibm committed Mar 22, 2024
1 parent 4fff643 commit a62512b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ protected final int setIntValue(final int pageOffset, final int value) {
protected final int setShortValue(final int pageOffset, final short value) {

if (changes != null) {
changes.setIntValue(buffer, value, pageOffset);
changes.setShortValue(buffer, value, pageOffset);
} else {
assert buffer != null;
assert buffer.order() == ByteOrder.nativeOrder();
Expand Down

0 comments on commit a62512b

Please sign in to comment.