---

** [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-...@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.
_______________________________________________
Pd-dev mailing list
Pd-dev@iem.at
http://lists.puredata.info/listinfo/pd-dev

Reply via email to