[PD-dev] [pure-data:patches] #516 Fix for externals/miXed/cyclone/sickle/count.c

electrickery electrickery at users.sf.net
Sun Oct 13 14:51:19 CEST 2013




---

** [patches:#516] Fix for externals/miXed/cyclone/sickle/count.c**

**Status:** open
**Labels:** cyclone 
**Created:** Sun Oct 13, 2013 12:51 PM UTC by electrickery
**Last Updated:** Sun Oct 13, 2013 12:51 PM UTC
**Owner:** nobody

The count~ object supports a set message, which crashes Pd. This patch fixes the crash, but keeps the remainder of the behaviour intact.

The patch compromises between documented features (count~-help.pd) and 'intentions in the code'. The current Max behaviour is not considered, only the bug is fixed.

Discussion:
The set message is not essential, as the values can be changed with floats on both inlets, or a list into the left inlet. But as it is used in the help patch, its behaviour is repaired. In the code both the start and end value are set, so this is also supported. A safety check for the number of arguments is also added. It is assumed this is the indended behaviour.

Compatibility with 64-bits architectures is not checked. This should be the subject of another patch.

Thanks to Katja for helping with the pd-API.

Fred Jan Kraan, 2013-10-13


---

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/20131013/c684942a/attachment.htm>


More information about the Pd-dev mailing list