Skip to content

Commit 467a89e

Browse files
committed
Fix issue 198.
1 parent 28e2c65 commit 467a89e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/object/class.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ namespace objects
618618
{
619619
object property(
620620
(python::detail::new_reference)
621-
PyObject_CallFunction((PyObject*)&PyProperty_Type, const_cast<char*>("Osss"), fget.ptr(), 0, 0, docstr));
621+
PyObject_CallFunction((PyObject*)&PyProperty_Type, const_cast<char*>("Osss"), fget.ptr(), (char*)NULL, (char*)NULL, docstr));
622622

623623
this->setattr(name, property);
624624
}
@@ -628,7 +628,7 @@ namespace objects
628628
{
629629
object property(
630630
(python::detail::new_reference)
631-
PyObject_CallFunction((PyObject*)&PyProperty_Type, const_cast<char*>("OOss"), fget.ptr(), fset.ptr(), 0, docstr));
631+
PyObject_CallFunction((PyObject*)&PyProperty_Type, const_cast<char*>("OOss"), fget.ptr(), fset.ptr(), (char*)NULL, docstr));
632632

633633
this->setattr(name, property);
634634
}

0 commit comments

Comments
 (0)