From 4029f7ef5d6ceccc5a7bb2fe5c2487dcbda6370a Mon Sep 17 00:00:00 2001 From: Brad Barnett <127794626+bdbarnett@users.noreply.github.com> Date: Thu, 22 Oct 2026 00:15:49 -0500 Subject: [PATCH] audiograph: Graph.get converts its float to mp_float_t, so double-float builds compile On a build where mp_float_t is double (the webassembly port), passing a float to mp_obj_new_float is an implicit promotion, and the build's -Werror=double-promotion refuses it. --- src/audiograph/Graph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audiograph/Graph.c b/src/audiograph/Graph.c index 96da85b..beceea9 100644 --- a/src/audiograph/Graph.c +++ b/src/audiograph/Graph.c @@ -133,7 +133,7 @@ static mp_obj_t audiograph_graph_get(mp_obj_t self_in, mp_obj_t node, (uint32_t)mp_obj_get_int(index), &value)) { mp_raise_ValueError(MP_ERROR_TEXT("bad node or parameter index")); } - return mp_obj_new_float(value); + return mp_obj_new_float((mp_float_t)value); } static MP_DEFINE_CONST_FUN_OBJ_3(audiograph_graph_get_obj, audiograph_graph_get);