Commit f19fb5ac authored by Garrett Regier's avatar Garrett Regier

Use gint64 in peas_lua_utils_check_version()

This is required as we are using g_ascii_strtoll()
and checking for G_MAXINT64.
parent 41852acf
......@@ -72,7 +72,7 @@ peas_lua_utils_check_version (lua_State *L,
const gchar *version_str;
gchar **version_str_parts;
gint n_version_parts;
gint *version_parts;
gint64 *version_parts;
gint i;
gboolean success = FALSE;
......@@ -82,7 +82,7 @@ peas_lua_utils_check_version (lua_State *L,
version_str_parts = g_strsplit (version_str, ".", 0);
n_version_parts = g_strv_length (version_str_parts);
version_parts = g_newa (gint, n_version_parts);
version_parts = g_newa (gint64, n_version_parts);
for (i = 0; i < n_version_parts; ++i)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment