summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/value.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/value.c b/src/value.c
index aed4f65..4724a23 100644
--- a/src/value.c
+++ b/src/value.c
@@ -50,9 +50,9 @@ slv2_value_new(SLV2World world, SLV2ValueType type, const char* str)
struct lconv* locale = localeconv();
if (locale->decimal_point && strcmp(locale->decimal_point, ".")) {
assert(strlen(locale->decimal_point) == 1);
- char* dec = strchr(str, locale->decimal_point[0]);
+ char* dec = strchr(str, '.');
if (dec)
- *dec = '.';
+ *dec = locale->decimal_point[0];
}
}