From c057c1245b394f3d6efec558765ac6175afb23b2 Mon Sep 17 00:00:00 2001
From: Ivica Ico Bukvic <ico@vt.edu>
Date: Mon, 28 Jul 2014 14:43:28 -0400
Subject: [PATCH] *fixed value where it would not accept a float via a send
 (backport from current pd branch)

---
 pd/src/x_connective.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/pd/src/x_connective.c b/pd/src/x_connective.c
index 3c5a7cfc2..bf29421b4 100644
--- a/pd/src/x_connective.c
+++ b/pd/src/x_connective.c
@@ -1658,6 +1658,11 @@ value_setfloat(t_symbol *s, t_float f)
     return (0); 
 }
 
+static void vcommon_float(t_vcommon *x, t_float f)
+{
+    x->c_f = f;
+}
+
 static void *value_new(t_symbol *s)
 {
     t_value *x = (t_value *)pd_new(value_class);
@@ -1692,6 +1697,7 @@ static void value_setup(void)
     class_addfloat(value_class, value_float);
     vcommon_class = class_new(gensym("value"), 0, 0,
         sizeof(t_vcommon), CLASS_PD, 0);
+    class_addfloat(vcommon_class, vcommon_float);
 }
 
 /* -------------- overall setup routine for this file ----------------- */
-- 
GitLab