From 1ba83c3c8fe151b72327078425391c3deff9160b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Tue, 13 Jan 2009 16:40:12 +0000 Subject: made array-access 64bit compatible svn path=/trunk/externals/zexy/; revision=10529 --- src/tabset.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/tabset.c') diff --git a/src/tabset.c b/src/tabset.c index 6abb91a..5cd7844 100644 --- a/src/tabset.c +++ b/src/tabset.c @@ -33,11 +33,11 @@ static void tabset_float(t_tabset *x, t_floatarg f) { t_garray *A; int npoints; - t_float *vec; + zarray_t *vec; if (!(A = (t_garray *)pd_findbyclass(x->x_arrayname, garray_class))) error("%s: no such array", x->x_arrayname->s_name); - else if (!garray_getfloatarray(A, &npoints, &vec)) + else if (!zarray_getarray(A, &npoints, &vec)) error("%s: bad template for tabset", x->x_arrayname->s_name); else { while(npoints--)*vec++=f; @@ -49,12 +49,12 @@ static void tabset_list(t_tabset *x, t_symbol *s, int argc, t_atom* argv) { t_garray *A; int npoints; - t_float *vec; + zarray_t *vec; ZEXY_USEVAR(s); if (!(A = (t_garray *)pd_findbyclass(x->x_arrayname, garray_class))) error("%s: no such array", x->x_arrayname->s_name); - else if (!garray_getfloatarray(A, &npoints, &vec)) + else if (!zarray_getarray(A, &npoints, &vec)) error("%s: bad template for tabset", x->x_arrayname->s_name); else { if (argc>=npoints) -- cgit v1.2.1