Skip to content

Commit c3b427b

Browse files
authored
Merge pull request libgit2#4896 from csware/C4133
Fix warning C4133 incompatible types in MSVC
2 parents 0e3e832 + f0714da commit c3b427b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/repository.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,7 +1417,7 @@ static bool are_symlinks_supported(const char *wd_path)
14171417
git_buf path = GIT_BUF_INIT;
14181418
int fd;
14191419
struct stat st;
1420-
bool symlinks = false;
1420+
int symlinks = 0;
14211421

14221422
/*
14231423
* To emulate Git for Windows, symlinks on Windows must be explicitly
@@ -1462,7 +1462,7 @@ static bool are_symlinks_supported(const char *wd_path)
14621462
done:
14631463
git_buf_dispose(&path);
14641464
git_config_free(config);
1465-
return symlinks;
1465+
return symlinks != 0;
14661466
}
14671467

14681468
static int create_empty_file(const char *path, mode_t mode)

0 commit comments

Comments
 (0)