aboutsummaryrefslogtreecommitdiff
path: root/pd/src/g_array.c
diff options
context:
space:
mode:
authorMiller Puckette <millerpuckette@users.sourceforge.net>2005-05-30 03:04:19 +0000
committerMiller Puckette <millerpuckette@users.sourceforge.net>2005-05-30 03:04:19 +0000
commit05607e31243e5e85a3801d4513192bb1f2150b14 (patch)
tree0f810a621cb9967e1e53b349410b0d07be0cea13 /pd/src/g_array.c
parent47729b52cb85e8a52bf2e6bbf8ee9a810ed331e1 (diff)
Remembered to update all the edited files. Should now be in sync... will
have to test it though. svn path=/trunk/; revision=3092
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,