fix hex pointer conversion

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7021 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-03-02 17:52:34 +00:00
commit 32d5addaa6
3 changed files with 5 additions and 3 deletions

View file

@ -120,7 +120,7 @@ SWIGRUNTIME PyObject *
PySwigObject_hex(PySwigObject *v)
{
char buf[100];
PyOS_snprintf(buf, sizeof(buf), "0x%lx", (unsigned long)v->ptr);
PyOS_snprintf(buf, sizeof(buf), "%p", v->ptr);
return PyString_FromString(buf);
}