Update togedge.c
closes
@@ -25,6 +25,10 @@ static void togedge_bang(t_togedge *x){
}
static void togedge_float(t_togedge *x, t_float f){
+ if((int)f != f){
+ pd_error(x, "[togedge]: doesn't deal with non integer floats");
+ }
+ else{
int i = f != 0;
if(x->x_wason){
if (!i){
@@ -39,6 +43,7 @@ static void togedge_float(t_togedge *x, t_float f){
}
}
}
+}
static void *togedge_new(void){
t_togedge *x = (t_togedge *)pd_new(togedge_class);
