diff --git a/src/classes.cpp b/src/classes.cpp index c721ef5c..f51d1a2f 100644 --- a/src/classes.cpp +++ b/src/classes.cpp @@ -11,8 +11,6 @@ // 03 Mar 01 added: pickle safety measures (Ralf W. Grosse-Kunstleve) // 03 Mar 01 bug fix: use bound_function::create() (instead of new bound_function) -#define BOOST_PYTHON_SOURCE - #include #include #include @@ -645,7 +643,7 @@ PyObject* instance::divmod(PyObject* other) PyObject* instance::power(PyObject* exponent, PyObject* modulus) { - if (as_object(modulus->ob_type) == Py_None) + if (as_object(modulus) == Py_None) return callback::call_method(this, "__pow__", exponent); else return callback::call_method(this, "__pow__", exponent, modulus);