Commit ae2e4daeb04ddb0c45c79ad186ce112a681244c2

Authored by knodlseder
1 parent 4816386e

open file readonly if status = 105

Showing 1 changed file with 1 additions and 1 deletions
src/fits/GFits.cpp
... ... @@ -183,7 +183,7 @@ void GFits::open(const std::string& filename)
183 183 }
184 184  
185 185 // If FITS file is readonly then open as readonly
186   - else if (status == 112 or status == 105) {
  186 + else if (status == 112 || status == 105) {
187 187 status = 0;
188 188 status = __ffopen(&m_fitsfile, filename.c_str(), 0, &status);
189 189 m_readwrite = 0;
... ...