aboutsummaryrefslogtreecommitdiff
path: root/pd/src/g_array.c
diff options
context:
space:
mode:
Diffstat (limited to 'pd/src/g_array.c')
-rw-r--r--pd/src/g_array.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pd/src/g_array.c b/pd/src/g_array.c
index ce91eb6e..4d0aa225 100644
--- a/pd/src/g_array.c
+++ b/pd/src/g_array.c
@@ -80,6 +80,7 @@ void array_resize(t_array *x, int n)
{
char *cp = x->a_vec + elemsize * oldn;
int i = n - oldn;
+ post("%d->%d", oldn, i);
for (; i--; cp += elemsize)
{
t_word *wp = (t_word *)cp;
@@ -468,7 +469,7 @@ void garray_arrayviewlist_new(t_garray *x)
for (i = 0; i < ARRAYPAGESIZE && i < a->a_n; i++)
{
yval = *(float *)(a->a_vec +
- elemsize * i * sizeof (t_word) + yonset);
+ elemsize * i + yonset);
sys_vgui(".%sArrayWindow.lb insert %d {%d) %g}\n",
x->x_realname->s_name,
i,
@@ -512,7 +513,7 @@ void garray_arrayviewlist_fillpage(t_garray *x,
i++)
{
yval = *(float *)(a->a_vec + \
- elemsize * i * sizeof (t_word) + yonset);
+ elemsize * i + yonset);
sys_vgui(".%sArrayWindow.lb insert %d {%d) %g}\n",
x->x_realname->s_name,
i % ARRAYPAGESIZE,