From 7edd12aa3b0bea063a109a88cd97669676883e97 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Mon, 23 Jan 2006 18:36:59 +0000 Subject: [PATCH] fix for VC git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8527 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Examples/test-suite/python/swigobject.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }