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:
authorLinquize <linquize@yahoo.com.hk>2013-09-08 13:15:42 +0400
committerLinquize <linquize@yahoo.com.hk>2013-09-19 19:14:06 +0400
commit66566516ce5171111ea4c5a8160adb4b0b0dc675 (patch)
tree20d7374e602911f282ddfedf8449c8b8176d85d9 /src/config_file.c
parentef6389ad504037e7a4311adbf14f1fa5a5aa4190 (diff)
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 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);