summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2017-09-24 14:32:26 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2017-09-24 14:32:26 +0100
commit66c08289e8ff19332736758f0306ddb60834a728 (patch)
treead06c6ebc0537a8557d190c8af4220ab9d50bb30
parent230b258b0fb0279e9f8b500d6a9cfa1313162ced (diff)
downloadgobject-introspection-66c08289e8ff19332736758f0306ddb60834a728.tar.gz
Use locale-independent functions to parse numbers
https://bugzilla.gnome.org/show_bug.cgi?id=788087
-rw-r--r--girepository/girnode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/girepository/girnode.c b/girepository/girnode.c
index 455e9d6c..4d439a64 100644
--- a/girepository/girnode.c
+++ b/girepository/girnode.c
@@ -992,19 +992,19 @@ _g_ir_node_param_direction_string (GIrNodeParam * node)
static gint64
parse_int_value (const gchar *str)
{
- return strtoll (str, NULL, 0);
+ return g_ascii_strtoll (str, NULL, 0);
}
static guint64
parse_uint_value (const gchar *str)
{
- return strtoull (str, NULL, 0);
+ return g_ascii_strtoull (str, NULL, 0);
}
static gdouble
parse_float_value (const gchar *str)
{
- return strtod (str, NULL);
+ return g_ascii_strtod (str, NULL);
}
static gboolean