From cdbcc2ad3b6518a995aa5234000c41b9f823e8c8 Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Thu, 10 Nov 2016 22:27:55 -0500 Subject: [PATCH] fix #152: canvas resizing not working --- pd/src/g_all_guis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pd/src/g_all_guis.c b/pd/src/g_all_guis.c index 5e30fed67..f9c11fbfd 100644 --- a/pd/src/g_all_guis.c +++ b/pd/src/g_all_guis.c @@ -768,12 +768,12 @@ t_scalehandle *scalehandle_new(t_object *x, t_glist *glist, int scale, t_clickha h->h_glist = glist; if (!scale) /* Only bind for labels-- scaling uses pd_vmess in g_editor.c */ { - sprintf(buf, "_l%lx", (int)x); + sprintf(buf, "_l%lx", (long unsigned int)x); pd_bind((t_pd *)h, h->h_bindsym = gensym(buf)); } else if (scale && pd_class((t_pd *)x) == my_canvas_class) { - sprintf(buf, "_s%lx", (int)x); + sprintf(buf, "_s%lx", (long unsigned int)x); pd_bind((t_pd *)h, h->h_bindsym = gensym(buf)); } sprintf(h->h_outlinetag, "h%lx", (t_int)h); -- GitLab