summaryrefslogtreecommitdiff
path: root/girepository/girparser.c
diff options
context:
space:
mode:
Diffstat (limited to 'girepository/girparser.c')
-rw-r--r--girepository/girparser.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/girepository/girparser.c b/girepository/girparser.c
index 8f8f6f4d..42525ecd 100644
--- a/girepository/girparser.c
+++ b/girepository/girparser.c
@@ -1440,7 +1440,7 @@ start_property (GMarkupParseContext *context,
return TRUE;
}
-static gint
+static gint64
parse_value (const gchar *str)
{
gchar *shift_op;
@@ -1450,15 +1450,15 @@ parse_value (const gchar *str)
if (shift_op)
{
- gint base, shift;
+ gint64 base, shift;
- base = strtol (str, NULL, 10);
- shift = strtol (shift_op + 3, NULL, 10);
+ base = g_ascii_strtoll (str, NULL, 10);
+ shift = g_ascii_strtoll (shift_op + 3, NULL, 10);
return base << shift;
}
else
- return strtol (str, NULL, 10);
+ return g_ascii_strtoll (str, NULL, 10);
return 0;
}