[libgit2-glib] diff: the delta index should be a gsize



commit 2c4843bb2b1e15f8434de8651ce20b2726fd5ac4
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Wed Aug 17 15:41:45 2016 +0200

    diff: the delta index should be a gsize

 libgit2-glib/ggit-diff.c |    4 ++--
 libgit2-glib/ggit-diff.h |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libgit2-glib/ggit-diff.c b/libgit2-glib/ggit-diff.c
index 724c134..14323f7 100644
--- a/libgit2-glib/ggit-diff.c
+++ b/libgit2-glib/ggit-diff.c
@@ -741,7 +741,7 @@ ggit_diff_format_email (GgitDiff                    *diff,
  * Returns: the number of deltas.
  *
  **/
-gint
+gsize
 ggit_diff_get_num_deltas (GgitDiff *diff)
 {
        g_return_val_if_fail (GGIT_IS_DIFF (diff), 0);
@@ -761,7 +761,7 @@ ggit_diff_get_num_deltas (GgitDiff *diff)
  **/
 GgitDiffDelta *
 ggit_diff_get_delta (GgitDiff *diff,
-                     gint      index)
+                     gsize     index)
 {
        const git_diff_delta *delta;
 
diff --git a/libgit2-glib/ggit-diff.h b/libgit2-glib/ggit-diff.h
index d6edeb3..5cff7cf 100644
--- a/libgit2-glib/ggit-diff.h
+++ b/libgit2-glib/ggit-diff.h
@@ -88,10 +88,10 @@ gchar         *ggit_diff_format_email              (GgitDiff              *diff,
                                                     GgitDiffFormatEmailOptions *options,
                                                     GError               **error);
 
-gint           ggit_diff_get_num_deltas            (GgitDiff              *diff);
+gsize          ggit_diff_get_num_deltas            (GgitDiff              *diff);
 
 GgitDiffDelta *ggit_diff_get_delta                 (GgitDiff              *diff,
-                                                    gint                   index);
+                                                    gsize                  index);
 
 void           ggit_diff_blobs                     (GgitBlob              *old_blob,
                                                     const gchar           *old_as_path,


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