Skip to content

Commit 06522ea

Browse files
committed
Correct a guard for binary operations on truffle objects to prefer interpretation as long over double
1 parent b4eae98 commit 06522ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/foreign/TruffleObjectBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ Object doComparisonLong(Object left, Object right,
230230
}
231231
}
232232

233-
@Specialization(guards = {"lib.fitsInDouble(left)"})
233+
@Specialization(guards = {"!lib.fitsInLong(left)", "lib.fitsInDouble(left)"})
234234
Object doComparisonDouble(Object left, Object right,
235235
@CachedLibrary(limit = "3") InteropLibrary lib) {
236236
try {

0 commit comments

Comments
 (0)