Skip to content
Merged
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
4 changes: 2 additions & 2 deletions ALICE3/Core/FlatLutEntry.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ lutHeader_t FlatLutData::previewHeader(const uint8_t* buffer, size_t size)
}
const auto* header = reinterpret_cast<const lutHeader_t*>(buffer); // NOLINT(cppcoreguidelines-pro-type-reinterpret-cast)
if (!header->checkVersion()) {
LOGF(warn, "LUT header version mismatch: expected %d, got %d", LUTCOVM_VERSION, header->version);
throw framework::runtime_error_f("LUT header version mismatch: expected %d, got %d", LUTCOVM_VERSION, header->version);
}
return *header;
}
Expand Down Expand Up @@ -272,7 +272,7 @@ lutHeader_t FlatLutData::previewHeader(std::ifstream& file, const char* filename
throw framework::runtime_error_f("Failed to read LUT header from %s", filename);
}
if (!tempHeader.checkVersion()) {
LOGF(warn, "LUT header version mismatch: expected %d, got %d", LUTCOVM_VERSION, tempHeader.version);
throw framework::runtime_error_f("LUT header version mismatch: expected %d, got %d", LUTCOVM_VERSION, tempHeader.version);
}
return tempHeader;
}
Expand Down
Loading