diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2011-10-09 16:41:04 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2011-10-09 16:41:04 +0000 |
commit | e1fc51c3a1d944193032d8bb1d95741d090b6d3b (patch) | |
tree | 7a2121c73a5acb69a080e73ad8e3b50cc3670616 /pd/src/s_print.c | |
parent | 21c068f1916330e90f814bed461fe0821d1665ec (diff) |
checked in pd-0.43-1test4.src.tar.gz
svn path=/trunk/; revision=15558
Diffstat (limited to 'pd/src/s_print.c')
-rw-r--r-- | pd/src/s_print.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/pd/src/s_print.c b/pd/src/s_print.c index c82601a1..6dbb6cfa 100644 --- a/pd/src/s_print.c +++ b/pd/src/s_print.c @@ -41,8 +41,8 @@ static char* strnescape(char *dest, const char *src, size_t len) static char* strnpointerid(char *dest, const void *pointer, size_t len) { *dest=0; - if(pointer) - snprintf(dest, len, ".x%lx", pointer); + if (pointer) + snprintf(dest, len, ".x%lx", (unsigned long)pointer); return dest; } @@ -280,13 +280,15 @@ void glob_finderror(t_pd *dummy) void glob_findinstance(t_pd *dummy, t_symbol*s) { - // revert s to (potential) pointer to object - void*obj=NULL; - if(sscanf(s->s_name, ".x%lx", &obj)) { - if(obj) { - canvas_finderror(obj); + // revert s to (potential) pointer to object + long obj = 0; + if (sscanf(s->s_name, ".x%lx", &obj)) + { + if (obj) + { + canvas_finderror((void *)obj); + } } - } } void bug(const char *fmt, ...) |