[libgit2-glib] Added type conversions for enumerations



commit f33175c738f10470e446d419c4c48a80b2823eca
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Fri Nov 22 20:40:05 2013 +0100

    Added type conversions for enumerations

 libgit2-glib/ggit-repository.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgit2-glib/ggit-repository.c b/libgit2-glib/ggit-repository.c
index 0266462..2fab9de 100644
--- a/libgit2-glib/ggit-repository.c
+++ b/libgit2-glib/ggit-repository.c
@@ -1456,7 +1456,7 @@ ggit_repository_lookup_branch (GgitRepository *repository,
        ret = git_branch_lookup (&branch,
                                 _ggit_native_get (repository),
                                 branch_name,
-                                branch_type);
+                                (git_branch_t)branch_type);
 
        if (ret != GIT_OK)
        {
@@ -1709,7 +1709,7 @@ ggit_repository_reset (GgitRepository  *repository,
 
        ret = git_reset (_ggit_native_get (repository),
                         _ggit_native_get (target),
-                        reset_type);
+                        (git_reset_t)reset_type);
 
        if (ret != GIT_OK)
        {


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