summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-22 15:25:35 +0100
committerDavid Robillard <d@drobilla.net>2020-12-22 15:25:35 +0100
commit680d41b239538b84ff33bf7448b2d49f3be85f47 (patch)
treef0e81417981cc4b7444a69dde825be47df6e3e00 /src
parentc2e45d3b8338447be4b4cb10b1c43871a5a49460 (diff)
downloadsratom-680d41b239538b84ff33bf7448b2d49f3be85f47.tar.gz
sratom-680d41b239538b84ff33bf7448b2d49f3be85f47.tar.bz2
sratom-680d41b239538b84ff33bf7448b2d49f3be85f47.zip
Fix implicit narrowing conversion
Diffstat (limited to 'src')
-rw-r--r--src/sratom.c2
1 files changed, 1 insertions, 1 deletions
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")) {