You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
this seems wrong.
if c->c_vectors is of type t_word**, then you must not assign a t_float** value (like vectors) to it.
instead vectors must be turned into a t_word** as well (and initialized as such).
note that sizeof(t_float) is typically 4 (for single-precision Pd), and sizeof(t_word) is typically 8 (on 64bit systems).
so you will mostly underallocate data.
(the bug has been present before, but your typecast now tells the compiler to explicitly ignore the problem)
694caf4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems wrong.
if
c->c_vectors
is of typet_word**
, then you must not assign at_float**
value (likevectors
) to it.instead
vectors
must be turned into at_word**
as well (and initialized as such).note that
sizeof(t_float)
is typically 4 (for single-precision Pd), andsizeof(t_word)
is typically8
(on 64bit systems).so you will mostly underallocate data.
(the bug has been present before, but your typecast now tells the compiler to explicitly ignore the problem)