[libgit2-glib/wip/techlivezh/fix-720808] The return value should be an int
- From: Techlive Zheng <techlivezh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib/wip/techlivezh/fix-720808] The return value should be an int
- Date: Sat, 21 Dec 2013 17:22:46 +0000 (UTC)
commit b428e86553e783582571370171bbd038f092e240
Author: Techlive Zheng <techlivezheng gmail com>
Date: Wed Dec 18 11:20:27 2013 +0800
The return value should be an int
Fix https://bugzilla.gnome.org/show_bug.cgi?id=720808
libgit2-glib/ggit-diff-hunk.c | 2 +-
libgit2-glib/ggit-diff-hunk.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgit2-glib/ggit-diff-hunk.c b/libgit2-glib/ggit-diff-hunk.c
index 3c7875d..48ddb07 100644
--- a/libgit2-glib/ggit-diff-hunk.c
+++ b/libgit2-glib/ggit-diff-hunk.c
@@ -102,7 +102,7 @@ ggit_diff_hunk_unref (GgitDiffHunk *hunk)
*
* Returns: the starting line number in the old file.
*/
-gchar
+gint
ggit_diff_hunk_get_old_start (GgitDiffHunk *hunk)
{
g_return_val_if_fail (hunk != NULL, 0);
diff --git a/libgit2-glib/ggit-diff-hunk.h b/libgit2-glib/ggit-diff-hunk.h
index 49aa66c..af703a2 100644
--- a/libgit2-glib/ggit-diff-hunk.h
+++ b/libgit2-glib/ggit-diff-hunk.h
@@ -35,7 +35,7 @@ GgitDiffHunk *_ggit_diff_hunk_wrap (const git_diff_hunk *hunk);
GgitDiffHunk *ggit_diff_hunk_ref (GgitDiffHunk *hunk);
void ggit_diff_hunk_unref (GgitDiffHunk *hunk);
-gchar ggit_diff_hunk_get_old_start (GgitDiffHunk *hunk);
+gint ggit_diff_hunk_get_old_start (GgitDiffHunk *hunk);
gint ggit_diff_hunk_get_old_lines (GgitDiffHunk *hunk);
gint ggit_diff_hunk_get_new_start (GgitDiffHunk *hunk);
gint ggit_diff_hunk_get_new_lines (GgitDiffHunk *hunk);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]