Ticket #4125: 4125-use-macros-instead-of-direct-access.patch
File 4125-use-macros-instead-of-direct-access.patch, 757 bytes (added by , 12 years ago) |
---|
-
libs/python/src/wrapper.cpp
25 25 26 26 if ( 27 27 PyMethod_Check(m.get()) 28 && ((PyMethodObject*)m.get())->im_self== this->m_self28 && PyMethod_GET_SELF(m.get()) == this->m_self 29 29 && class_object->tp_dict != 0 30 30 ) 31 31 { … … 34 34 35 35 36 36 } 37 if (borrowed_f != ((PyMethodObject*)m.get())->im_func)37 if (borrowed_f != PyMethod_GET_FUNCTION(m.get())) 38 38 return override(m); 39 39 } 40 40 }