Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Wynn
purr-data
Commits
c057c124
Commit
c057c124
authored
Jul 28, 2014
by
Ivica Bukvic
Browse files
*fixed value where it would not accept a float via a send (backport from current pd branch)
parent
43e2a3e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/src/x_connective.c
View file @
c057c124
...
...
@@ -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 ----------------- */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment