Skip to content

Commit 37b2bdb

Browse files
committed
Workaround gcc-2.x ICE
[SVN r21016]
1 parent e9519db commit 37b2bdb

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

include/boost/python/converter/shared_ptr_from_python.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ struct shared_ptr_from_python
2222
private:
2323
static void* convertible(PyObject* p)
2424
{
25-
return p == Py_None
26-
? p
27-
: converter::get_lvalue_from_python(p, registered<T>::converters)
28-
;
25+
if (p == Py_None)
26+
return p;
27+
28+
return converter::get_lvalue_from_python(p, registered<T>::converters);
2929
}
3030

3131
static void construct(PyObject* source, rvalue_from_python_stage1_data* data)

0 commit comments

Comments
 (0)