Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/tools/clair-c2py/worker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ bool worker_t::check_convertibility(clang::FunctionDecl const *f, bool test_retu
}
if (test_return_type) {
auto ty = f->getReturnType();
if (ty->isPointerType()) {
if (ty->isPointerType() and (ty->getPointeeType().getAsString() != "PyObject")) {
if (emit_error) clu::emit_error(f, "c2py: Can not convert a raw C++ pointer to python");
ok = false;
} else if ((not ty->isVoidType()) and (not clu::satisfy_concept(ty, this->IsConvertibleC2Py, this->ci))
Expand Down
Loading