diff options
| author | nulltoken <emeric.fermas@gmail.com> | 2011-05-24 18:55:35 +0200 |
|---|---|---|
| committer | nulltoken <emeric.fermas@gmail.com> | 2011-05-24 18:55:35 +0200 |
| commit | 3a1c431011229fe641a23c129cfafa462558a03f (patch) | |
| tree | 970d310df23c7cfd61647c6edc5daa5a596c16b9 /src/config_file.c | |
| parent | 8146fe7cb9b2c8161ff7d773548237682b1e7a98 (diff) | |
| download | libgit2-3a1c431011229fe641a23c129cfafa462558a03f.tar.gz | |
Fix compilation warnings in MSVC
This allows to successfully build libgit2 with waf on Windows.
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 1ee9afa28..ace7cc8ff 100644 --- a/src/config_file.c +++ b/src/config_file.c @@ -638,7 +638,7 @@ static int parse_section_header_ext(const char *line, const char *base_name, cha break; } - subsection[pos++] = c; + subsection[pos++] = (char) c; } while ((c = line[rpos++]) != ']'); subsection[pos] = '\0'; @@ -719,7 +719,7 @@ static int parse_section_header(diskfile_backend *cfg, char **section_out) goto error; } - name[name_length++] = tolower(c); + name[name_length++] = (char) tolower(c); } while ((c = line[pos++]) != ']'); |
