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 381515d commit 22f40da
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 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
6 changes: 3 additions & 3 deletions cyclone_objects/binaries/audio/bitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ static t_class *bitor_class;
static void bitor_intmask(t_bitor *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 *bitor_perform(t_int *w)
Expand Down Expand Up @@ -118,7 +118,7 @@ static void bitor_bits(t_bitor *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 bitor_mode(t_bitor *x, t_floatarg f)
Expand All @@ -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 22f40da

Please sign in to comment.