Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57590 - trunk/libs/python/src/object
From: troy_at_[hidden]
Date: 2009-11-11 19:46:47


Author: troy
Date: 2009-11-11 19:46:46 EST (Wed, 11 Nov 2009)
New Revision: 57590
URL: http://svn.boost.org/trac/boost/changeset/57590

Log:
Don't use type_is_gc... type_is_gc expects a PyTypeObject, which is not what will get passed to it if we pass it to the tp_is_gc fields of static_data_object
Text files modified:
   trunk/libs/python/src/object/class.cpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/libs/python/src/object/class.cpp
==============================================================================
--- trunk/libs/python/src/object/class.cpp (original)
+++ trunk/libs/python/src/object/class.cpp 2009-11-11 19:46:46 EST (Wed, 11 Nov 2009)
@@ -182,7 +182,7 @@
     0, /* tp_alloc */
     0, // filled in with type_new /* tp_new */
     0, // filled in with __PyObject_GC_Del /* tp_free */
- (inquiry)type_is_gc, /* tp_is_gc */
+ 0, /* tp_is_gc */
     0, /* tp_bases */
     0, /* tp_mro */
     0, /* tp_cache */


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk