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