Skip to content

Commit f182eb5

Browse files
committed
Simplify 'isPrimitiveWrapper' guard.
1 parent 7c0544d commit f182eb5

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/CExtNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ Object run(Object obj) {
473473
}
474474

475475
protected static boolean isPrimitiveNativeWrapper(PythonNativeWrapper object) {
476-
return object instanceof PrimitiveNativeWrapper && !isMaterialized((PrimitiveNativeWrapper) object) || object instanceof BoolNativeWrapper;
476+
return object instanceof PrimitiveNativeWrapper;
477477
}
478478

479479
protected boolean isForeignObject(TruffleObject obj, GetLazyClassNode getClassNode, IsBuiltinClassProfile isForeignClassProfile) {

0 commit comments

Comments
 (0)