[PD-dev] [ pure-data-Bugs-3458347 ] spec2_sqrt~.c won't work in double precision, violates C99
SourceForge.net
noreply at sourceforge.net
Mon Dec 12 20:43:18 CET 2011
Bugs item #3458347, was opened at 2011-12-12 11:43
Message generated for change (Tracker Item Submitted) made by eighthave
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=478070&aid=3458347&group_id=55736
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Hans-Christoph Steiner (eighthave)
Assigned to: musil (tmusil)
Summary: spec2_sqrt~.c won't work in double precision, violates C99
Initial Comment:
spec2_sqrt~.c includes type punning, which violates the C99 standard, breaks when t_float/t_sample are 64-bit doubles, and also breaks modern compiler optimizations. Here's the compiler warning:
pd-extended/externals/iem/iem_spec2/src/spec2_sqrt~.c:28: warning: dereferencing type-punned pointer will break strict-aliasing rules
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=478070&aid=3458347&group_id=55736
More information about the Pd-dev
mailing list