[PD-dev] [pure-data:patches] #525 consistent arguments to canvas_properties
IOhannes m zmölnig via Pd-dev
pd-dev at lists.iem.at
Wed Jun 25 11:53:35 CEST 2014
---
** [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 at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20140625/48434f7c/attachment.html>
More information about the Pd-dev
mailing list