Skip to content

Commit 4ef402e

Browse files
committed
Fix exception class flags
1 parent 089693c commit 4ef402e

File tree

1 file changed

+2
-2
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/type

1 file changed

+2
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/type/TypeNodes.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ static long doBuiltinClassType(PythonBuiltinClassType clazz) {
260260
default:
261261
// default case; this includes:
262262
// PythonObject, PByteArray, PCode, PInstancemethod, PFloat, PNone,
263-
// PNotImplemented, PEllipsis
264-
result = DEFAULT | (clazz.isAcceptableBase() ? BASETYPE : 0) | (PythonBuiltinClassType.isExceptionType(clazz) ? BASE_EXC_SUBCLASS : 0L);
263+
// PNotImplemented, PEllipsis, exceptions
264+
result = DEFAULT | (clazz.isAcceptableBase() ? BASETYPE : 0) | (PythonBuiltinClassType.isExceptionType(clazz) ? BASE_EXC_SUBCLASS | HAVE_GC : 0L);
265265
break;
266266
}
267267
// we always claim that all types are fully initialized

0 commit comments

Comments
 (0)