Commit ad1bd262b5d56a9e562ab292e0665d64da61eb00
1 parent
2170b60c
Trying to fix linker errors
Showing
2 changed files
with
1 additions
and
4 deletions
.appveyor.yml
include/CLI/Validators.hpp
| ... | ... | @@ -27,7 +27,7 @@ namespace CLI { |
| 27 | 27 | bool ExistingFile(std::string filename) { |
| 28 | 28 | struct stat buffer; |
| 29 | 29 | bool exist = stat(filename.c_str(), &buffer) == 0; |
| 30 | - bool is_dir = (buffer.st_mode & S_IFDIR != 0); | |
| 30 | + bool is_dir = (buffer.st_mode & S_IFDIR) != 0; | |
| 31 | 31 | if(!exist) { |
| 32 | 32 | std::cerr << "File does not exist: " << filename << std::endl; |
| 33 | 33 | return false; | ... | ... |