fix hex pointer conversion

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7022 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-03-02 17:55:13 +00:00
commit 3c1fce28ae

View file

@ -1,3 +1,4 @@
from swigobject import *
a = A()
@ -14,7 +15,6 @@ lthis = long(a.this)
xstr1 = "0x%x" % (lthis,)
xstr2 = pointer_str(a)
print hex(lthis)
if xstr1 != xstr2:
print xstr1, xstr2
raise RuntimeError