[libpeas] Use gint64 in peas_lua_utils_check_version()



commit f19fb5ac96573662b6e8b3f4615692fa345285bd
Author: Garrett Regier <garrettregier gmail com>
Date:   Tue Sep 22 00:07:05 2015 -0700

    Use gint64 in peas_lua_utils_check_version()
    
    This is required as we are using g_ascii_strtoll()
    and checking for G_MAXINT64.

 loaders/lua5.1/peas-lua-utils.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/loaders/lua5.1/peas-lua-utils.c b/loaders/lua5.1/peas-lua-utils.c
index 8371451..4a27a41 100644
--- a/loaders/lua5.1/peas-lua-utils.c
+++ b/loaders/lua5.1/peas-lua-utils.c
@@ -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)
     {


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