Skip to content

Commit b6a2bf1

Browse files
committed
Allow PFloat in divmod
1 parent a22f15d commit b6a2bf1

File tree

1 file changed

+1
-1
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/floats

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/floats/FloatBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ PNotImplemented doGeneric(Object left, Object right) {
637637
}
638638

639639
protected static boolean accepts(Object obj) {
640-
return obj instanceof Double || obj instanceof Integer || obj instanceof Long || obj instanceof PInt;
640+
return obj instanceof Double || obj instanceof Integer || obj instanceof Long || obj instanceof PInt || obj instanceof PFloat;
641641
}
642642
}
643643

0 commit comments

Comments
 (0)