Skip to content

Commit bc2becd

Browse files
cosminbascatomasstupka
authored andcommitted
ObjectNodes.IdNode fix missing PBytes from generic guard check
1 parent 8adcc68 commit bc2becd

File tree

1 file changed

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

1 file changed

+6
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/object/ObjectNodes.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,12 @@ Object id(PythonNativeVoidPtr self) {
353353
}
354354

355355
protected static boolean isDefaultCase(PythonObject object) {
356-
return !(object instanceof PFloat || object instanceof PInt || object instanceof PString || object instanceof PTuple || object instanceof PFrozenSet ||
356+
return !(object instanceof PBytes ||
357+
object instanceof PFrozenSet ||
358+
object instanceof PTuple ||
359+
object instanceof PInt ||
360+
object instanceof PFloat ||
361+
object instanceof PString ||
357362
object instanceof PythonBuiltinClass);
358363
}
359364

0 commit comments

Comments
 (0)