Skip to content

Commit

Permalink
Fix warning with GCC14
Browse files Browse the repository at this point in the history
  • Loading branch information
daljit46 committed Aug 8, 2024
1 parent 6e60f5e commit ebf6707
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/file/npy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ DataType descr2datatype(const std::string &s) {
data_type = data_type() | (is_little_endian ? DataType::LittleEndian : DataType::BigEndian);
if (issue_endianness_warning) {
using namespace std::string_literals;
const std::string message = "NumPy file does not indicate data endianness;"s + " assuming " +
(MRTRIX_IS_BIG_ENDIAN ? "big" : "little") + "-endian" + " (same as system)";
const std::string message = "NumPy file does not indicate data endianness; assuming "s +
(MRTRIX_IS_BIG_ENDIAN ? "big"s : "little"s) + "-endian"s + " (same as system)"s;
WARN(message);
}
}
Expand Down

0 comments on commit ebf6707

Please sign in to comment.