From 95ccff69528f5a88f36edd9f66874849797d33dc Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Thu, 8 Jan 2009 19:46:38 +0000 Subject: [PATCH] fix cast of pointer to long git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11043 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/swigobject.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Examples/test-suite/swigobject.i b/Examples/test-suite/swigobject.i index 2e77969b9..2ec064509 100644 --- a/Examples/test-suite/swigobject.i +++ b/Examples/test-suite/swigobject.i @@ -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; }