diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2013-01-02 03:53:22 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@iem.at> | 2015-10-14 13:36:01 +0200 |
commit | 35b16d6d1b93b3093a4005d406c412f68078d9e1 (patch) | |
tree | fbfd627f2e7ccc5beb72e0139d9f54f615976ef9 | |
parent | e715ccd081bb2df9bec41ca0e55775743967f697 (diff) |
fix array access on 64-bit
svn path=/trunk/externals/bsaylor/; revision=16806
-rw-r--r-- | partconv~.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/partconv~.c b/partconv~.c index 373d580..6e36fea 100644 --- a/partconv~.c +++ b/partconv~.c @@ -252,7 +252,7 @@ static void partconv_set(t_partconv *x, t_symbol *s) int i; int j; t_garray *arrayobj; - t_float *array; + t_word *array; int arraysize; int arraypos; @@ -263,7 +263,7 @@ static void partconv_set(t_partconv *x, t_symbol *s) pd_error(x, "partconv~: %s: no such array", x->arrayname->s_name); return; } - } else if ( ! garray_getfloatarray(arrayobj, &arraysize, &array)) { + } else if ( ! garray_getfloatwords(arrayobj, &arraysize, &array)) { pd_error(x, "%s: bad template", x->arrayname->s_name); return; } @@ -286,7 +286,7 @@ static void partconv_set(t_partconv *x, t_symbol *s) x->irpart_fd[i] = (fftwf_complex *) x->irpart_td[i]; x->irpart_plan = fftwf_plan_dft_r2c_1d(x->fftsize, x->irpart_td[i], x->irpart_fd[i], FFTW_MEASURE); for (j = 0; j < x->partsize && arraypos < arraysize; j++, arraypos++) { - x->irpart_td[i][j] = array[arraypos]; + x->irpart_td[i][j] = array[arraypos].w_float; } for ( ; j < x->paddedsize; j++) { x->irpart_td[i][j] = 0; |