Commit 4191d529 by Vicent Martí

Merge pull request #204 from nulltoken/fix/build-msvc

Fix compilation warnings in MSVC
parents 8146fe7c 3a1c4310
...@@ -638,7 +638,7 @@ static int parse_section_header_ext(const char *line, const char *base_name, cha ...@@ -638,7 +638,7 @@ static int parse_section_header_ext(const char *line, const char *base_name, cha
break; break;
} }
subsection[pos++] = c; subsection[pos++] = (char) c;
} while ((c = line[rpos++]) != ']'); } while ((c = line[rpos++]) != ']');
subsection[pos] = '\0'; subsection[pos] = '\0';
...@@ -719,7 +719,7 @@ static int parse_section_header(diskfile_backend *cfg, char **section_out) ...@@ -719,7 +719,7 @@ static int parse_section_header(diskfile_backend *cfg, char **section_out)
goto error; goto error;
} }
name[name_length++] = tolower(c); name[name_length++] = (char) tolower(c);
} while ((c = line[pos++]) != ']'); } while ((c = line[pos++]) != ']');
......
...@@ -109,7 +109,7 @@ void git__strntolower(char *str, int len) ...@@ -109,7 +109,7 @@ void git__strntolower(char *str, int len)
int i; int i;
for (i = 0; i < len; ++i) { for (i = 0; i < len; ++i) {
str[i] = tolower(str[i]); str[i] = (char) tolower(str[i]);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment