Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-09-21 20:34:03 +0400
committerVicent Martí <vicent@github.com>2013-09-21 20:34:03 +0400
commit92d19d16711c059c768063956abd31db346d2e7b (patch)
tree2110237444fb9e24463f159675734f1dd6f0a028 /src/config_file.c
parentdaef29ea3ed84c2ec558c46fa08077b5b55fe63d (diff)
parent66566516ce5171111ea4c5a8160adb4b0b0dc675 (diff)
Merge pull request #1840 from linquize/warning
Fix warning
Diffstat (limited to 'src/config_file.c')
-rw-r--r--src/config_file.c4
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);