summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.clang-tidy1
-rw-r--r--src/sratom.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/.clang-tidy b/.clang-tidy
index c4e4efb..dafcdbb 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -2,7 +2,6 @@ Checks: >
*,
-*-else-after-return,
-*-magic-numbers,
- -*-narrowing-conversions,
-*-uppercase-literal-suffix,
-bugprone-suspicious-string-compare,
-cert-err34-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")) {