[PD-dev] [ pure-data-Patches-1930745 ] fix type-punned pointers (part 1)
SourceForge.net
noreply at sourceforge.net
Tue Apr 1 03:31:00 CEST 2008
Patches item #1930745, was opened at 2008-04-01 01:30
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=478072&aid=1930745&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: puredata
Group: bugfix
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Thomas Grill (xovo)
Assigned to: Nobody/Anonymous (nobody)
Summary: fix type-punned pointers (part 1)
Initial Comment:
optimization with strict-aliasing chokes on type-punned pointers. Type-casting is replaced with unions.
Using static functions in m_pd.h is not nice, but those will be inlined by any decent compilers anyway.
Even better would be checking for the inline keyword with autoconf and use that throughout pd when available.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=478072&aid=1930745&group_id=55736
More information about the Pd-dev
mailing list