yet better pointer string comparison
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11056 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
3d8f569466
commit
ecdd24a508
1 changed files with 1 additions and 1 deletions
|
|
@ -19,9 +19,9 @@ lthis = long(a.this)
|
||||||
xstr1 = "%016X" % (lthis,)
|
xstr1 = "%016X" % (lthis,)
|
||||||
xstr1 = lstrip(xstr1, '0')
|
xstr1 = lstrip(xstr1, '0')
|
||||||
xstr2 = pointer_str(a)
|
xstr2 = pointer_str(a)
|
||||||
xstr2 = lstrip(xstr2, '0')
|
|
||||||
xstr2 = replace(xstr2, "0x", "")
|
xstr2 = replace(xstr2, "0x", "")
|
||||||
xstr2 = replace(xstr2, "0X", "")
|
xstr2 = replace(xstr2, "0X", "")
|
||||||
|
xstr2 = lstrip(xstr2, '0')
|
||||||
xstr2 = upper(xstr2)
|
xstr2 = upper(xstr2)
|
||||||
|
|
||||||
if xstr1 != xstr2:
|
if xstr1 != xstr2:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue