[gobject-introspection] Use locale-independent functions to parse numbers



commit 66c08289e8ff19332736758f0306ddb60834a728
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Sun Sep 24 14:32:26 2017 +0100

    Use locale-independent functions to parse numbers
    
    https://bugzilla.gnome.org/show_bug.cgi?id=788087

 girepository/girnode.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/girepository/girnode.c b/girepository/girnode.c
index 455e9d6..4d439a6 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]