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/config_file.c | |
parent | ef6389ad504037e7a4311adbf14f1fa5a5aa4190 (diff) | |
download | libgit2-66566516ce5171111ea4c5a8160adb4b0b0dc675.tar.gz |
Fix warning
Diffstat (limited to 'src/config_file.c')
-rw-r--r-- | src/config_file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config_file.c b/src/config_file.c index efc9df965..9087bfa56 100644 --- a/src/config_file.c +++ b/src/config_file.c @@ -125,7 +125,7 @@ int git_config_file_normalize_section(char *start, char *end) if (end && scan >= end) break; if (isalnum(*scan)) - *scan = tolower(*scan); + *scan = (char)tolower(*scan); else if (*scan != '-' || scan == start) return GIT_EINVALIDSPEC; } @@ -737,7 +737,7 @@ static int parse_section_header_ext(diskfile_backend *cfg, const char *line, con break; } - git_buf_putc(&buf, c); + git_buf_putc(&buf, (char)c); } while ((c = line[rpos++]) != ']'); *section_name = git_buf_detach(&buf); |