summaryrefslogtreecommitdiffstats
path: root/src/node.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-30 02:07:42 +0000
committerDavid Robillard <d@drobilla.net>2011-04-30 02:07:42 +0000
commit6c72abfc6d6649f07d85f70b25ce4393dc775a39 (patch)
treed87d8cc347a43b3b02d97caa6666848448c7e92c /src/node.c
parent054c39b12cb610d79006f0b51153cb2c4aa5a0b7 (diff)
downloadlilv-6c72abfc6d6649f07d85f70b25ce4393dc775a39.tar.gz
lilv-6c72abfc6d6649f07d85f70b25ce4393dc775a39.tar.bz2
lilv-6c72abfc6d6649f07d85f70b25ce4393dc775a39.zip
Tidy.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3241 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/node.c')
-rw-r--r--src/node.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node.c b/src/node.c
index 8fbf5b1..d7ee26a 100644
--- a/src/node.c
+++ b/src/node.c
@@ -284,7 +284,7 @@ lilv_node_get_turtle_token(const LilvNode* value)
case LILV_VALUE_FLOAT:
// FIXME: locale kludge, need a locale independent snprintf
locale = lilv_strdup(setlocale(LC_NUMERIC, NULL));
- len = 20; // FIXME: proper maximum value?
+ len = 20; // FIXME: proper maximum value?
result = calloc(len, 1);
setlocale(LC_NUMERIC, "POSIX");
snprintf(result, len, "%f", value->val.float_val);
@@ -395,7 +395,7 @@ lilv_node_as_float(const LilvNode* value)
assert(lilv_node_is_float(value) || lilv_node_is_int(value));
if (lilv_node_is_float(value))
return value->val.float_val;
- else // lilv_node_is_int(value)
+ else // lilv_node_is_int(value)
return (float)value->val.int_val;
}