summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Strickroth <email@cs-ware.de>2018-11-25 13:36:29 +0100
committerSven Strickroth <email@cs-ware.de>2018-11-25 14:09:02 +0100
commitf0714dafa1a40a0e1b4ed2616a189c27c69fe22b (patch)
treeb461cd85a0c1873fae905494ab2c3e05d6b275a5
parent0e3e832d793797b14c441881615267c2ce1d0517 (diff)
downloadlibgit2-f0714dafa1a40a0e1b4ed2616a189c27c69fe22b.tar.gz
Fix warning C4133 incompatible types in MSVC
Introduced in commit b433a22a979ae78c28c8b16f8c3487e2787cb73e. Signed-off-by: Sven Strickroth <email@cs-ware.de>
-rw-r--r--src/repository.c4
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)