summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2009-01-08 19:46:38 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2009-01-08 19:46:38 +0000
commit95ccff69528f5a88f36edd9f66874849797d33dc (patch)
tree860894da112c9743d50a62d16dffd9815e26e01b
parented0ae261bfdaa75c7080692d16c3f32d370b45fa (diff)
downloadswig-95ccff69528f5a88f36edd9f66874849797d33dc.tar.gz
fix cast of pointer to long
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11043 626c5289-ae23-0410-ae9c-e8d60b6d4f22
-rw-r--r--Examples/test-suite/swigobject.i2
1 files changed, 1 insertions, 1 deletions
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;
}