Skip to content

Commit

Permalink
fix xompilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
porres committed Aug 1, 2024
1 parent 4f57c1a commit 16a1e08
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions cyclone_objects/binaries/audio/bitand.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ static t_class *bitand_class;
static void bitand_intmask(t_bitand *x, t_floatarg f)
{
x->x_mask = (int32_t)f;
pd_float(x->x_rightinlet, (t_float)x->x_mask);
pd_float((t_pd *)x->x_rightinlet, (t_float)x->x_mask);
}

static t_int *bitand_perform(t_int *w)
Expand Down Expand Up @@ -114,7 +114,7 @@ static void bitand_bits(t_bitand *x, t_symbol *s, int ac, t_atom *av)
t_float f;
magic_setnan(&f);
x->x_mask = bitwise_getbitmask(ac, av);
pd_float(x->x_rightinlet, f);
pd_float((t_pd *)x->x_rightinlet, f);
}

static void bitand_mode(t_bitand *x, t_floatarg f)
Expand All @@ -130,7 +130,7 @@ static void *bitand_new(t_floatarg f1, t_floatarg f2)
x->x_glist = canvas_getcurrent();
x->x_rightinlet = inlet_new((t_object *)x, (t_pd *)x, &s_signal, &s_signal);
outlet_new((t_object *)x, &s_signal);
x->x_signalscalar = obj_findsignalscalar(x, 1);
x->x_signalscalar = obj_findsignalscalar((t_object *)x, 1);
bitand_intmask(x, f1);
bitand_mode(x, f2);
return (x);
Expand Down
2 changes: 1 addition & 1 deletion cyclone_objects/binaries/audio/bitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ static void *bitor_new(t_floatarg f1, t_floatarg f2)
x->x_glist = canvas_getcurrent();
x->x_rightinlet = inlet_new((t_object *)x, (t_pd *)x, &s_signal, &s_signal);
outlet_new((t_object *)x, &s_signal);
x->x_signalscalar = obj_findsignalscalar(x, 1);
x->x_signalscalar = obj_findsignalscalar((t_object *)x, 1);
bitor_intmask(x, f1);
bitor_mode(x, f2);
return (x);
Expand Down
6 changes: 3 additions & 3 deletions cyclone_objects/binaries/audio/bitxor.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ static t_class *bitxor_class;
static void bitxor_intmask(t_bitxor *x, t_floatarg f)
{
x->x_mask = (int32_t)f;
pd_float(x->x_rightinlet, (t_float)x->x_mask);
pd_float((t_pd *)x->x_rightinlet, (t_float)x->x_mask);
}

static t_int *bitxor_perform(t_int *w)
Expand Down Expand Up @@ -125,7 +125,7 @@ static void bitxor_bits(t_bitxor *x, t_symbol *s, int ac, t_atom *av)
t_float f;
magic_setnan(&f);
x->x_mask = bitwise_getbitmask(ac, av);
pd_float(x->x_rightinlet, f);
pd_float((t_pd *)x->x_rightinlet, f);
}

static void bitxor_mode(t_bitxor *x, t_floatarg f)
Expand All @@ -141,7 +141,7 @@ static void *bitxor_new(t_symbol *s, int argc, t_atom * argv)
x->x_glist = canvas_getcurrent();
x->x_rightinlet = inlet_new((t_object *)x, (t_pd *)x, &s_signal, &s_signal);
outlet_new((t_object *)x, &s_signal);
x->x_signalscalar = obj_findsignalscalar(x, 1);
x->x_signalscalar = obj_findsignalscalar((t_object *)x, 1);

//defaults
t_float bitmask = PDCYBXORMASK;
Expand Down

0 comments on commit 16a1e08

Please sign in to comment.