Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ install:
before_build:
- md build
- cd build
- cmake -G "Visual Studio 14 2015" -A x64 -T v140,host=x64 -DPopSift_BUILD_EXAMPLES:BOOL=OFF -DCMAKE_BUILD_TYPE=%configuration% -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake ..
- cmake -G "Visual Studio 14 2015" -A x64 -T v140,host=x64 -DPopSift_BUILD_EXAMPLES:BOOL=ON -DCMAKE_BUILD_TYPE=%configuration% -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake ..
- ls -l

build:
Expand Down
4 changes: 2 additions & 2 deletions src/application/pgmread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ unsigned char* readPGMfile( const string& filename, int& w, int& h )
{
boost::filesystem::path input_file( filename );

if( not boost::filesystem::exists( input_file ) ) {
if( ! boost::filesystem::exists( input_file ) ) {
cerr << "File " << input_file << " does not exist" << endl;
return nullptr;
}

ifstream pgmfile( filename.c_str(), ios::binary );
if( not pgmfile.is_open() ) {
if( ! pgmfile.is_open() ) {
cerr << "File " << input_file << " could not be opened for reading" << endl;
return nullptr;
}
Expand Down