fixed the wrong pointer value returned by SwigPyObject_repr()
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11213 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
88ffb89c2b
commit
6c96148de5
2 changed files with 4 additions and 3 deletions
|
|
@ -1,6 +1,9 @@
|
||||||
Version 1.3.40 (in progress)
|
Version 1.3.40 (in progress)
|
||||||
============================
|
============================
|
||||||
|
|
||||||
|
2009-05-14: bhy
|
||||||
|
[Python] Fix the wrong pointer value returned by SwigPyObject_repr().
|
||||||
|
|
||||||
2009-05-13: mutandiz (Mikel Bancroft)
|
2009-05-13: mutandiz (Mikel Bancroft)
|
||||||
[allegrocl] Minor tweak when wrapping in -nocwrap mode.
|
[allegrocl] Minor tweak when wrapping in -nocwrap mode.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -383,9 +383,7 @@ SwigPyObject_repr(SwigPyObject *v, PyObject *args)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
const char *name = SWIG_TypePrettyName(v->ty);
|
const char *name = SWIG_TypePrettyName(v->ty);
|
||||||
PyObject *hex = SwigPyObject_hex(v);
|
PyObject *repr = SWIG_Python_str_FromFormat("<Swig Object of type '%s' at %p>", name, v);
|
||||||
PyObject *repr = SWIG_Python_str_FromFormat("<Swig Object of type '%s' at %p>", name, hex);
|
|
||||||
Py_DECREF(hex);
|
|
||||||
if (v->next) {
|
if (v->next) {
|
||||||
#ifdef METH_NOARGS
|
#ifdef METH_NOARGS
|
||||||
PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
|
PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue