From 680d41b239538b84ff33bf7448b2d49f3be85f47 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 22 Dec 2020 15:25:35 +0100 Subject: Fix implicit narrowing conversion --- src/sratom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sratom.c') diff --git a/src/sratom.c b/src/sratom.c index 4f09846..f1d80a6 100644 --- a/src/sratom.c +++ b/src/sratom.c @@ -586,7 +586,7 @@ read_literal(Sratom* sratom, LV2_Atom_Forge* forge, const SordNode* node) lv2_atom_forge_long(forge, strtol(str, NULL, 10)); } else if (!strcmp(type_uri, (const char*)NS_XSD "float") || !strcmp(type_uri, (const char*)NS_XSD "decimal")) { - lv2_atom_forge_float(forge, serd_strtod(str, NULL)); + lv2_atom_forge_float(forge, (float)serd_strtod(str, NULL)); } else if (!strcmp(type_uri, (const char*)NS_XSD "double")) { lv2_atom_forge_double(forge, serd_strtod(str, NULL)); } else if (!strcmp(type_uri, (const char*)NS_XSD "boolean")) { -- cgit v1.2.1