diff --git a/src/g_mycanvas.c b/src/g_mycanvas.c index ed23ff0135b33874a04637f4182222b72c1f1ac8..98a4be606fe3cfa014c93cfe6c7bc8c0b9ee4c67 100644 --- a/src/g_mycanvas.c +++ b/src/g_mycanvas.c @@ -42,10 +42,10 @@ void my_canvas_draw_new(t_my_canvas *x, t_glist *glist) t_canvas *canvas=glist_getcanvas(glist); t_scalehandle *sh = (t_scalehandle *)x->x_gui.x_handle; - sprintf(sh->h_pathname, ".x%x.h%x", (int)canvas, (int)sh); + sprintf(sh->h_pathname, ".x%lx.h%lx", (t_int)canvas, (t_int)sh); t_scalehandle *lh = (t_scalehandle *)x->x_gui.x_lhandle; - sprintf(lh->h_pathname, ".x%x.h%x", (int)canvas, (int)lh); + sprintf(lh->h_pathname, ".x%lx.h%lx", (t_int)canvas, (t_int)lh); //if (glist_isvisible(glist)) { @@ -311,7 +311,7 @@ static void my_canvas__clickhook(t_scalehandle *sh, t_floatarg f, t_floatarg xxx if (glist_isvisible(x->x_gui.x_glist)) { sys_vgui("lower %s\n", sh->h_pathname); t_scalehandle *othersh = (t_scalehandle *)x->x_gui.x_handle; - sys_vgui("lower .x%x.h%x\n", (int)glist_getcanvas(x->x_gui.x_glist), (int)othersh); + sys_vgui("lower .x%lx.h%lx\n", (t_int)glist_getcanvas(x->x_gui.x_glist), (t_int)othersh); } sh->h_dragx = 0; @@ -651,9 +651,9 @@ static void *my_canvas_new(t_symbol *s, int argc, t_atom *argv) x->x_gui.x_handle = pd_new(scalehandle_class); sh = (t_scalehandle *)x->x_gui.x_handle; sh->h_master = (t_gobj*)x; - sprintf(buf, "_h%x", (int)sh); + sprintf(buf, "_h%lx", (t_int)sh); pd_bind(x->x_gui.x_handle, sh->h_bindsym = gensym(buf)); - sprintf(sh->h_outlinetag, "h%x", (int)sh); + sprintf(sh->h_outlinetag, "h%lx", (t_int)sh); sh->h_dragon = 0; sh->h_scale = 1; x->x_gui.scale_offset_x = 0; @@ -666,9 +666,9 @@ static void *my_canvas_new(t_symbol *s, int argc, t_atom *argv) x->x_gui.x_lhandle = pd_new(scalehandle_class); lh = (t_scalehandle *)x->x_gui.x_lhandle; lh->h_master = (t_gobj*)x; - sprintf(lhbuf, "_h%x", (int)lh); + sprintf(lhbuf, "_h%lx", (t_int)lh); pd_bind(x->x_gui.x_lhandle, lh->h_bindsym = gensym(lhbuf)); - sprintf(lh->h_outlinetag, "h%x", (int)lh); + sprintf(lh->h_outlinetag, "h%tx", (t_int)lh); lh->h_dragon = 0; lh->h_scale = 0; x->x_gui.label_offset_x = 0; diff --git a/src/g_numbox.c b/src/g_numbox.c index 563bae994dfeccd5ab2a2729dab5be6a41e6c8e1..6d2829035f12346d643ed4f80c4322028f160b42 100644 --- a/src/g_numbox.c +++ b/src/g_numbox.c @@ -193,10 +193,10 @@ static void my_numbox_draw_new(t_my_numbox *x, t_glist *glist) t_canvas *canvas=glist_getcanvas(glist); t_scalehandle *sh = (t_scalehandle *)x->x_gui.x_handle; - sprintf(sh->h_pathname, ".x%x.h%x", (int)canvas, (int)sh); + sprintf(sh->h_pathname, ".x%lx.h%lx", (t_int)canvas, (t_int)sh); t_scalehandle *lh = (t_scalehandle *)x->x_gui.x_lhandle; - sprintf(lh->h_pathname, ".x%x.h%x", (int)canvas, (int)lh); + sprintf(lh->h_pathname, ".x%lx.h%lx", (t_int)canvas, (t_int)lh); //if (glist_isvisible(canvas)) { @@ -618,7 +618,7 @@ static void my_numbox__clickhook(t_scalehandle *sh, t_floatarg f, t_floatarg xxx if (glist_isvisible(x->x_gui.x_glist)) { sys_vgui("lower %s\n", sh->h_pathname); t_scalehandle *othersh = (t_scalehandle *)x->x_gui.x_handle; - sys_vgui("lower .x%x.h%x\n", (int)glist_getcanvas(x->x_gui.x_glist), (int)othersh); + sys_vgui("lower .x%lx.h%lx\n", (t_int)glist_getcanvas(x->x_gui.x_glist), (t_int)othersh); } sh->h_dragx = 0; @@ -1225,9 +1225,9 @@ static void *my_numbox_new(t_symbol *s, int argc, t_atom *argv) x->x_gui.x_handle = pd_new(scalehandle_class); sh = (t_scalehandle *)x->x_gui.x_handle; sh->h_master = (t_gobj*)x; - sprintf(buf, "_h%x", (int)sh); + sprintf(buf, "_h%lx", (t_int)sh); pd_bind(x->x_gui.x_handle, sh->h_bindsym = gensym(buf)); - sprintf(sh->h_outlinetag, "h%x", (int)sh); + sprintf(sh->h_outlinetag, "h%lx", (t_int)sh); sh->h_dragon = 0; sh->h_scale = 1; x->x_gui.scale_offset_x = 0; @@ -1240,9 +1240,9 @@ static void *my_numbox_new(t_symbol *s, int argc, t_atom *argv) x->x_gui.x_lhandle = pd_new(scalehandle_class); lh = (t_scalehandle *)x->x_gui.x_lhandle; lh->h_master = (t_gobj*)x; - sprintf(lhbuf, "_h%x", (int)lh); + sprintf(lhbuf, "_h%lx", (t_int)lh); pd_bind(x->x_gui.x_lhandle, lh->h_bindsym = gensym(lhbuf)); - sprintf(lh->h_outlinetag, "h%x", (int)lh); + sprintf(lh->h_outlinetag, "h%lx", (t_int)lh); lh->h_dragon = 0; lh->h_scale = 0; x->x_gui.label_offset_x = 0; diff --git a/src/m_pd.h b/src/m_pd.h index cdf7a8d35ef47cd6a9c1b4b5cc991b860f7422c2..81e440765d42f4d063ba8c4a6baf3671c3d99e45 100644 --- a/src/m_pd.h +++ b/src/m_pd.h @@ -11,7 +11,7 @@ extern "C" { #define PD_MAJOR_VERSION 0 #define PD_MINOR_VERSION 42 #define PD_BUGFIX_VERSION 5 -#define PD_TEST_VERSION "extended-l2ork-20110916" +#define PD_TEST_VERSION "extended-l2ork-20110920" /* old name for "MSW" flag -- we have to take it for the sake of many old "nmakefiles" for externs, which will define NT and not MSW */