diff options
author | Linquize <linquize@yahoo.com.hk> | 2013-09-08 17:15:42 +0800 |
---|---|---|
committer | Linquize <linquize@yahoo.com.hk> | 2013-09-19 23:14:06 +0800 |
commit | 66566516ce5171111ea4c5a8160adb4b0b0dc675 (patch) | |
tree | 20d7374e602911f282ddfedf8449c8b8176d85d9 /src/index.c | |
parent | ef6389ad504037e7a4311adbf14f1fa5a5aa4190 (diff) | |
download | libgit2-66566516ce5171111ea4c5a8160adb4b0b0dc675.tar.gz |
Fix warning
Diffstat (limited to 'src/index.c')
-rw-r--r-- | src/index.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/index.c b/src/index.c index 9b32222a7..b4f2a3b6b 100644 --- a/src/index.c +++ b/src/index.c @@ -408,9 +408,9 @@ static int create_index_error(int error, const char *msg) return error; } -int git_index_set_caps(git_index *index, unsigned int caps) +int git_index_set_caps(git_index *index, int caps) { - int old_ignore_case; + unsigned int old_ignore_case; assert(index); @@ -438,7 +438,7 @@ int git_index_set_caps(git_index *index, unsigned int caps) } if (old_ignore_case != index->ignore_case) { - git_index__set_ignore_case(index, index->ignore_case); + git_index__set_ignore_case(index, (bool)index->ignore_case); } return 0; @@ -2092,7 +2092,7 @@ int git_index_add_all( /* check if path actually matches */ if (!git_pathspec__match( - &ps.pathspec, wd->path, no_fnmatch, ignorecase, &match, NULL)) + &ps.pathspec, wd->path, no_fnmatch, (bool)ignorecase, &match, NULL)) continue; /* skip ignored items that are not already in the index */ @@ -2184,7 +2184,7 @@ static int index_apply_to_all( /* check if path actually matches */ if (!git_pathspec__match( - &ps.pathspec, entry->path, false, index->ignore_case, + &ps.pathspec, entry->path, false, (bool)index->ignore_case, &match, NULL)) continue; |