From 9295982a3492d52bc85a6b7b12817ca3d6fbe007 Mon Sep 17 00:00:00 2001 From: Dominik Vogt Date: Tue, 12 Feb 2008 18:14:32 +0100 Subject: [PATCH] =?utf8?q?Fix=20compiler=20warnings:=20pointer=20of=20type?= =?utf8?q?=20=E2=80=98void=20*=E2=80=99=20used=20in=20arithmetic?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jonas Fonseca --- tig.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tig.c b/tig.c index 39e22e7..fcbf93c 100644 --- a/tig.c +++ b/tig.c @@ -2687,7 +2687,7 @@ static void add_pager_refs(struct view *view, struct line *line) { char buf[SIZEOF_STR]; - char *commit_id = line->data + STRING_SIZE("commit "); + char *commit_id = (char *)line->data + STRING_SIZE("commit "); struct ref **refs; size_t bufpos = 0, refpos = 0; const char *sep = "Refs: "; @@ -2798,7 +2798,7 @@ static void pager_select(struct view *view, struct line *line) { if (line->type == LINE_COMMIT) { - char *text = line->data + STRING_SIZE("commit "); + char *text = (char *)line->data + STRING_SIZE("commit "); if (view != VIEW(REQ_VIEW_PAGER)) string_copy_rev(view->ref, text); @@ -3117,7 +3117,7 @@ tree_request(struct view *view, enum request request, struct line *line) static void tree_select(struct view *view, struct line *line) { - char *text = line->data + STRING_SIZE("100644 blob "); + char *text = (char *)line->data + STRING_SIZE("100644 blob "); if (line->type == LINE_TREE_FILE) { string_copy_rev(ref_blob, text); -- 2.30.2