diff --git a/SWIG/Examples/test-suite/python/swigobject.i b/SWIG/Examples/test-suite/python/swigobject.i index fcecaffb7..8b98a55e5 100644 --- a/SWIG/Examples/test-suite/python/swigobject.i +++ b/SWIG/Examples/test-suite/python/swigobject.i @@ -10,7 +10,7 @@ const char* pointer_str(A *a){ static char result[1024]; - sprintf(result,"%p", (void *)a); + sprintf(result,"0x%x", (long)(void *)a); return result; }