Skip to content

Commit

Permalink
COMP: Fix typo (compile error) in PhilipsRECImageIO constructor
Browse files Browse the repository at this point in the history
Fixed a compile error, which appeared when enabling `Module_ITKIOPhilipsREC`:

> itkPhilipsRECImageIO.cxx(390,3): error C3861: 'iff': identifier not found

This obvious typo was introduced with pull request #3664
commit 2b1b531 "STYLE: Remove space between
class and member names (follow-up)", and reported by Bradley Lowekamp.
  • Loading branch information
N-Dekker committed Sep 28, 2022
1 parent c8be93a commit 8ad7354
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Modules/IO/PhilipsREC/src/itkPhilipsRECImageIO.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -387,11 +387,14 @@ PhilipsRECImageIO::PhilipsRECImageIO()
// Start out with file byte order == system byte order
// this will be changed if we're reading a file to whatever
// the file actually contains.
iff(ByteSwapper<int>::SystemIsBigEndian())
if (ByteSwapper<int>::SystemIsBigEndian())
{
this->m_MachineByteOrder = this->m_ByteOrder = IOByteOrderEnum::BigEndian;
}
else { this->m_MachineByteOrder = this->m_ByteOrder = IOByteOrderEnum::LittleEndian; }
else
{
this->m_MachineByteOrder = this->m_ByteOrder = IOByteOrderEnum::LittleEndian;
}
this->m_SliceIndex = new SliceIndexType();
}

Expand Down

0 comments on commit 8ad7354

Please sign in to comment.