fix cast of pointer to long

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11043 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2009-01-08 19:46:38 +00:00
commit 95ccff6952

View file

@ -10,7 +10,7 @@
const char* pointer_str(A *a){
static char result[1024];
sprintf(result,"0x%lx", (unsigned long)(void *)a);
sprintf(result,"%p", a);
return result;
}