Skip to content

Commit

Permalink
fix warning: result of comparison of constant 'little_endian' (3) wit…
Browse files Browse the repository at this point in the history
…h expression of type 'bool' is always true [-Wtautological-constant-out-of-range-compare]
  • Loading branch information
michaeldsmith committed Apr 4, 2024
1 parent d41a7e6 commit f910712
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/dpx/dpx.cc
Original file line number Diff line number Diff line change
Expand Up @@ -387,10 +387,11 @@ void dpx::write(std::ostream *os)
cpu_is_little_endian=TRUE;
}

_need_byteswap=FALSE;
if(cpu_is_little_endian!=little_endian) {
_need_byteswap=TRUE;
}
//_need_byteswap=FALSE;
//if(cpu_is_little_endian!=little_endian) {
// _need_byteswap=TRUE;
//}
_need_byteswap=TRUE;

// struct tm source_creation_time_tm;
// time_t source_creation_time_time;
Expand Down

0 comments on commit f910712

Please sign in to comment.