Unverified Commit c3b427ba by Edward Thomson Committed by GitHub

Merge pull request #4896 from csware/C4133

Fix warning C4133 incompatible types in MSVC
parents 0e3e832d f0714daf
...@@ -1417,7 +1417,7 @@ static bool are_symlinks_supported(const char *wd_path) ...@@ -1417,7 +1417,7 @@ static bool are_symlinks_supported(const char *wd_path)
git_buf path = GIT_BUF_INIT; git_buf path = GIT_BUF_INIT;
int fd; int fd;
struct stat st; struct stat st;
bool symlinks = false; int symlinks = 0;
/* /*
* To emulate Git for Windows, symlinks on Windows must be explicitly * To emulate Git for Windows, symlinks on Windows must be explicitly
...@@ -1462,7 +1462,7 @@ static bool are_symlinks_supported(const char *wd_path) ...@@ -1462,7 +1462,7 @@ static bool are_symlinks_supported(const char *wd_path)
done: done:
git_buf_dispose(&path); git_buf_dispose(&path);
git_config_free(config); git_config_free(config);
return symlinks; return symlinks != 0;
} }
static int create_empty_file(const char *path, mode_t mode) static int create_empty_file(const char *path, mode_t mode)
......
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