From 095e10a6a17420dd31d1f5f592b639f100275057 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 1 Aug 2011 17:35:10 +0000 Subject: replace .x%x 32-bit only canvas id with .x%lx canvas id which supports 32-bit and 64-bit svn path=/trunk/externals/miXed/; revision=15186 --- shared/toxy/scriptlet.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'shared') diff --git a/shared/toxy/scriptlet.c b/shared/toxy/scriptlet.c index db836ab..622512e 100644 --- a/shared/toxy/scriptlet.c +++ b/shared/toxy/scriptlet.c @@ -238,7 +238,7 @@ static char *scriptlet_dedot(t_scriptlet *sp, char *ibuf, t_canvas *cv; if (cv = scriptlet_canvasvalidate(sp, visedonly)) { - sprintf(obuf, ".x%x.c.%s%x", (int)cv, sp->s_item->s_name, + sprintf(obuf, ".x%lx.c.%s%x", (int)cv, sp->s_item->s_name, (int)sp->s_owner); len = 1; } @@ -250,7 +250,7 @@ static char *scriptlet_dedot(t_scriptlet *sp, char *ibuf, t_canvas *cv; if (cv = scriptlet_canvasvalidate(sp, visedonly)) { - sprintf(obuf, ".x%x", (int)cv); + sprintf(obuf, ".x%lx", (int)cv); len = 1; } } @@ -284,7 +284,7 @@ static char *scriptlet_dedot(t_scriptlet *sp, char *ibuf, { glist = cv->gl_owner; if (glist && glist_isvisible(glist)) - sprintf(obuf, ".x%x", (int)glist); + sprintf(obuf, ".x%lx", (int)glist); else obuf[0] = 0; len = 7; @@ -293,7 +293,7 @@ static char *scriptlet_dedot(t_scriptlet *sp, char *ibuf, { glist = canvas_getrootfor(cv); if (glist && glist_isvisible(glist)) - sprintf(obuf, ".x%x", (int)glist); + sprintf(obuf, ".x%lx", (int)glist); else obuf[0] = 0; len = 5; @@ -303,7 +303,7 @@ static char *scriptlet_dedot(t_scriptlet *sp, char *ibuf, if (glist = canvas_getrootfor(cv)) glist = glist->gl_owner; if (glist && glist_isvisible(glist)) - sprintf(obuf, ".x%x", (int)glist); + sprintf(obuf, ".x%lx", (int)glist); else obuf[0] = 0; len = 6; @@ -313,7 +313,7 @@ static char *scriptlet_dedot(t_scriptlet *sp, char *ibuf, glist = cv; while (glist->gl_owner) glist = glist->gl_owner; if (glist && glist_isvisible(glist)) - sprintf(obuf, ".x%x", (int)glist); + sprintf(obuf, ".x%lx", (int)glist); else obuf[0] = 0; len = 4; -- cgit v1.2.1