[libgit2-glib] Fixed warning on wrong pointer type



commit 210c2260a894fb968a08df9b6858d14e48194a7f
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Thu Apr 4 19:02:11 2013 +0200

    Fixed warning on wrong pointer type

 libgit2-glib/ggit-config.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgit2-glib/ggit-config.c b/libgit2-glib/ggit-config.c
index 48fee7e..3b98590 100644
--- a/libgit2-glib/ggit-config.c
+++ b/libgit2-glib/ggit-config.c
@@ -379,7 +379,7 @@ ggit_config_get_int64 (GgitConfig   *config,
                        GError      **error)
 {
        gint ret;
-       gint64 retval;
+       int64_t retval;
 
        g_return_val_if_fail (GGIT_IS_CONFIG (config), 0);
        g_return_val_if_fail (name != NULL, 0);
@@ -393,7 +393,7 @@ ggit_config_get_int64 (GgitConfig   *config,
                return 0;
        }
 
-       return retval;
+       return (gint64)retval;
 }
 
 /**


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