aboutsummaryrefslogtreecommitdiff
path: root/pd/src/g_array.c
diff options
context:
space:
mode:
authorMiller Puckette <millerpuckette@users.sourceforge.net>2008-05-22 18:25:27 +0000
committerMiller Puckette <millerpuckette@users.sourceforge.net>2008-05-22 18:25:27 +0000
commit619bf2d74ef3e5431cb6057698f324590368122b (patch)
tree6f94196bba4a6bd11bb51b2feb598e7d242aec16 /pd/src/g_array.c
parent7007d5067b69480ad5d61edee496a50b6114a0c1 (diff)
0.42-0 test 01. No real work yet, just bug fixes and updates.
svn path=/trunk/; revision=9867
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 0ebc99fb..a73c5ba5 100644
--- a/pd/src/g_array.c
+++ b/pd/src/g_array.c
@@ -1402,13 +1402,14 @@ static void garray_read(t_garray *x, t_symbol *filename)
}
for (i = 0; i < nelem; i++)
{
- if (!fscanf(fd, "%f", ((t_float *)(array->a_vec +
- elemsize * i) + yonset)))
+ float f;
+ if (!fscanf(fd, "%f", &f))
{
post("%s: read %d elements into table of size %d",
filename->s_name, i, nelem);
break;
}
+ else *((t_float *)(array->a_vec + elemsize * i) + yonset) = f;
}
while (i < nelem)
*((t_float *)(array->a_vec +