diff options
author | Vicent Martà <vicent@github.com> | 2013-09-21 20:34:03 +0400 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2013-09-21 20:34:03 +0400 |
commit | 92d19d16711c059c768063956abd31db346d2e7b (patch) | |
tree | 2110237444fb9e24463f159675734f1dd6f0a028 /src/config_file.c | |
parent | daef29ea3ed84c2ec558c46fa08077b5b55fe63d (diff) | |
parent | 66566516ce5171111ea4c5a8160adb4b0b0dc675 (diff) |
Merge pull request #1840 from linquize/warning
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 d0910a26c..1a845d8ba 100644 --- a/src/config_file.c +++ b/src/config_file.c @@ -132,7 +132,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; } @@ -781,7 +781,7 @@ static int parse_section_header_ext(struct reader *reader, 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); |