Skip to content

Commit 58bf81e

Browse files
committed
Fix a rebase error
1 parent b241c71 commit 58bf81e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/pybind11/detail/class.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,8 @@ inline PyObject* make_new_python_type(const type_record &rec) {
640640
auto &internals = get_internals();
641641
auto bases = tuple(rec.bases);
642642
auto base = (bases.empty()) ? (rec.is_except ? internals.exception_base
643-
: internals.instance_base)
643+
: internals.instance_base)
644+
: bases[0].ptr();
644645

645646
/* Danger zone: from now (and until PyType_Ready), make sure to
646647
issue no Python C API calls which could potentially invoke the

0 commit comments

Comments
 (0)