mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-04 13:33:59 +00:00
Merge pull request #204 from nulltoken/fix/build-msvc
Fix compilation warnings in MSVC
This commit is contained in:
commit
4191d52924
@ -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++]) != ']');
|
||||
|
||||
|
@ -109,7 +109,7 @@ void git__strntolower(char *str, int len)
|
||||
int i;
|
||||
|
||||
for (i = 0; i < len; ++i) {
|
||||
str[i] = tolower(str[i]);
|
||||
str[i] = (char) tolower(str[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user