2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-21 17:12:22 +00:00

fix for reference count bug.

[SVN r8835]
This commit is contained in:
Ralf W. Grosse-Kunstleve
2001-01-31 19:27:17 +00:00
parent e508842da6
commit f24a95c917

View File

@@ -70,7 +70,7 @@ BOOST_PYTHON_BEGIN_CONVERSION_NAMESPACE
//
MillerIndex from_python(PyObject* p, python::type<const MillerIndex&>)
{
python::tuple tup = python::tuple(python::ref(p));
python::tuple tup = python::tuple(python::ref(p, ref::increment_count));
if (tup.size() != 3) {
PyErr_SetString(PyExc_ValueError,
"expecting exactly 3 values in tuple.");