Commit e8f23c32 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

fix some nasty regressions with drawnumber and drawsymbol due to Ivica and I...

fix some nasty regressions with drawnumber and drawsymbol due to Ivica and I overlooking fairly obvious compiler warnings :(
parent eea40f66
......@@ -6376,7 +6376,7 @@ static int drawnumber_gettype(t_drawnumber *x, t_word *data,
{
int type;
t_symbol *arraytype;
if (template_find_field(template, /*x->x_fieldname*/ &x->x_value.fd_un.fd_varsym, onsetp, &type,
if (template_find_field(template, /*x->x_fieldname*/ x->x_value.fd_un.fd_varsym, onsetp, &type,
&arraytype) && type != DT_ARRAY)
return (type);
else return (-1);
......@@ -6860,12 +6860,12 @@ static void drawsymbol_sprintf(t_drawsymbol *x, char *buf, t_atom *ap)
//fprintf(stderr,"drawsymbol_sprintf %s\n", buf);
}*/
static int drawsymbol_gettype(t_drawnumber *x, t_word *data,
static int drawsymbol_gettype(t_drawsymbol *x, t_word *data,
t_template *template, int *onsetp)
{
int type;
t_symbol *arraytype;
if (template_find_field(template, /*x->x_fieldname*/ &x->x_value.fd_un.fd_varsym, onsetp, &type,
if (template_find_field(template, /*x->x_fieldname*/ x->x_value.fd_un.fd_varsym, onsetp, &type,
&arraytype) && type != DT_ARRAY)
return (type);
else return (-1);
......@@ -6875,7 +6875,7 @@ static int drawsymbol_gettype(t_drawnumber *x, t_word *data,
static void drawsymbol_getbuf(t_drawsymbol *x, t_word *data,
t_template *template, char *buf)
{
int nchars, onset, type = drawnumber_gettype(x, data, template, &onset);
int nchars, onset, type = drawsymbol_gettype(x, data, template, &onset);
if (type < 0)
buf[0] = 0;
else
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment