Skip to content

Commit

Permalink
Compare and return long value
Browse files Browse the repository at this point in the history
  • Loading branch information
DieKautz committed Jan 22, 2024
1 parent 9ed2ab1 commit 8320f67
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,10 +369,10 @@ private long isPointers(final long oop) {
private long isPositiveMachineIntegerObject(final long oop) {
final Object object = objectRegistryGet(oop);
if (object instanceof Long integer) {
return integer >= 0 ? 1 : 0;
return integer >= 0L ? 1L : 0L;
}
if (object instanceof LargeIntegerObject largeInteger) {
return largeInteger.isZeroOrPositive() && largeInteger.fitsIntoLong() ? 1 : 0;
return largeInteger.isZeroOrPositive() && largeInteger.fitsIntoLong() ? 1L : 0L;
}
return returnVoid();
}
Expand Down

0 comments on commit 8320f67

Please sign in to comment.