Skip to content

Commit

Permalink
Making Half Float failures work with it's conversions
Browse files Browse the repository at this point in the history
Signed-off-by: expani <[email protected]>
  • Loading branch information
expani committed Dec 27, 2024
1 parent a292351 commit 1d66ec7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public LeafFieldComparator getLeafComparator(LeafReaderContext context) throws I

@Override
protected long missingValueAsComparableLong() {
return NumericUtils.floatToSortableInt(missingValue);
return HalfFloatPoint.halfFloatToSortableShort(missingValue);
}

@Override
Expand Down Expand Up @@ -108,7 +108,7 @@ protected long bottomAsComparableLong() {

@Override
protected long topAsComparableLong() {
return NumericUtils.floatToSortableInt(topValue);
return HalfFloatPoint.halfFloatToSortableShort(topValue);
}
}

Expand Down

0 comments on commit 1d66ec7

Please sign in to comment.