summaryrefslogtreecommitdiffstats
path: root/Objects/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/object.c')
-rw-r--r--Objects/object.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Objects/object.c b/Objects/object.c
index 72c3013..a7df526 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -1123,6 +1123,10 @@ _PyTrash_deposit_object(PyObject *op)
typecode = Py_TRASHCAN_FRAME;
else if (PyTraceBack_Check(op))
typecode = Py_TRASHCAN_TRACEBACK;
+ else /* We have a bug here -- those are the only types in GC */ {
+ Py_FatalError("Type not supported in GC -- internal bug");
+ return; /* pacify compiler -- execution never here */
+ }
op->ob_refcnt = typecode;
op->ob_type = (PyTypeObject*)_PyTrash_delete_later;