---
** [patches:#525] consistent arguments to canvas_properties**
**Status:** open **Group:** bugfix **Labels:** dev **Created:** Wed Jun 25, 2014 09:53 AM UTC by IOhannes m zmölnig **Last Updated:** Wed Jun 25, 2014 09:53 AM UTC **Owner:** Miller Puckette
this patch changes the signature of `canvas_properties()` to
::C void canvas_properties(t_gobj *z, t_glist *canvas);
this fixes the problem, that canvas_properties was declared with an argument `t_gobj*` but then was implemented with an argument `t_glist*` (which triggered an error about undefined behaviour)
it also makes the function is a proper `t_propertiesfn` (by adding an unused 2nd argument), thus avoiding a typecast (which hid the above problem)
---
Sent from sourceforge.net because pd-dev@lists.iem.at is subscribed to https://sourceforge.net/p/pure-data/patches/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pure-data/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.