diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2018-11-25 13:59:22 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-25 13:59:22 +0000 |
| commit | c3b427bac4b64aa93920f60a2ee61e7c6a670799 (patch) | |
| tree | b461cd85a0c1873fae905494ab2c3e05d6b275a5 | |
| parent | 0e3e832d793797b14c441881615267c2ce1d0517 (diff) | |
| parent | f0714dafa1a40a0e1b4ed2616a189c27c69fe22b (diff) | |
| download | libgit2-c3b427bac4b64aa93920f60a2ee61e7c6a670799.tar.gz | |
Merge pull request #4896 from csware/C4133
Fix warning C4133 incompatible types in MSVC
| -rw-r--r-- | src/repository.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/repository.c b/src/repository.c index 490388051..cac25ad9b 100644 --- a/src/repository.c +++ b/src/repository.c @@ -1417,7 +1417,7 @@ static bool are_symlinks_supported(const char *wd_path) git_buf path = GIT_BUF_INIT; int fd; struct stat st; - bool symlinks = false; + int symlinks = 0; /* * To emulate Git for Windows, symlinks on Windows must be explicitly @@ -1462,7 +1462,7 @@ static bool are_symlinks_supported(const char *wd_path) done: git_buf_dispose(&path); git_config_free(config); - return symlinks; + return symlinks != 0; } static int create_empty_file(const char *path, mode_t mode) |
