summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/sratom/sratom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sratom/sratom.c b/src/sratom/sratom.c
index 7c88db0..9cb547c 100644
--- a/src/sratom/sratom.c
+++ b/src/sratom/sratom.c
@@ -473,9 +473,9 @@ read_node(Sratom* sratom,
if (datatype) {
const char* type_uri = (const char*)sord_node_get_string(datatype);
if (!strcmp(type_uri, (char*)NS_XSD "int")) {
- lv2_atom_forge_int32(forge, strtol(str, &endptr, 10));
+ lv2_atom_forge_int(forge, strtol(str, &endptr, 10));
} else if (!strcmp(type_uri, (char*)NS_XSD "long")) {
- lv2_atom_forge_int64(forge, strtol(str, &endptr, 10));
+ lv2_atom_forge_long(forge, strtol(str, &endptr, 10));
} else if (!strcmp(type_uri, (char*)NS_XSD "float")) {
lv2_atom_forge_float(forge, serd_strtod(str, &endptr));
} else if (!strcmp(type_uri, (char*)NS_XSD "double")) {