Skip to content

Commit

Permalink
Don't use InteropLibrary for primitive Enso values comparision
Browse files Browse the repository at this point in the history
  • Loading branch information
JaroslavTulach committed Feb 7, 2025
1 parent 7364a34 commit 83994b0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ EqualsAndInfo equalsBoolInterop(
}
}

@Specialization
@Specialization(guards = {"isNotMulti(other)", "!isPrimitiveValue(other)"})
EqualsAndInfo equalsInteropBool(
TruffleObject self,
boolean other,
Expand Down Expand Up @@ -119,7 +119,7 @@ EqualsAndInfo equalsLongBigInt(long self, EnsoBigInteger other) {
}
}

@Specialization(guards = "isNotMulti(other)")
@Specialization(guards = {"isNotMulti(other)", "!isPrimitiveValue(other)"})
EqualsAndInfo equalsLongInterop(
long self,
Object other,
Expand Down Expand Up @@ -155,7 +155,7 @@ EqualsAndInfo equalsDoubleText(double self, Text other) {
return EqualsAndInfo.FALSE;
}

@Specialization(guards = "!isMulti(other)")
@Specialization(guards = {"!isMulti(other)", "!isPrimitiveValue(other)"})
EqualsAndInfo equalsDoubleInterop(
double self,
Object other,
Expand Down

0 comments on commit 83994b0

Please sign in to comment.