Skip to content
Snippets Groups Projects
Commit 5e9124e9 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

cast dsp_add args to (t_int) for int types (like s_n of t_signal)

This gets rid of some undefined behavior that occurs from sending an
int as an argument to dsp_add which reads it back as a t_int. On certain
archs this will produce garbage values in the perform routine which can
cause crashes.
parent 99e0618c
No related branches found
No related tags found
No related merge requests found
Showing
with 29 additions and 26 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment