mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-28 10:30:03 +01:00
Use locale-independent functions to parse numbers
https://bugzilla.gnome.org/show_bug.cgi?id=788087
This commit is contained in:
parent
52727afbd2
commit
a6b5da2a4f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user