Skip to content

Commit e3063c0

Browse files
authored
[Tools] MlResponse: cast uint8_t to int before printing (#18597)
1 parent 7393582 commit e3063c0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎Tools/ML/MlResponse.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ class MlResponse
109109
void setModelPathsCCDB(const std::vector<std::string>& onnxFiles, const o2::ccdb::CcdbApi& ccdbApi, const std::vector<std::string>& pathsCCDB, int64_t timestampCCDB)
110110
{
111111
if (onnxFiles.size() != mNModels) {
112-
LOG(fatal) << "Number of expected models (" << mNModels << ") different from the one set (" << onnxFiles.size() << ")! Please check your configurables.";
112+
LOG(fatal) << "Number of expected models (" << static_cast<int>(mNModels) << ") different from the one set (" << onnxFiles.size() << ")! Please check your configurables.";
113113
}
114114
if (pathsCCDB.size() != mNModels) {
115-
LOG(fatal) << "Number of expected models (" << mNModels << ") different from the number of CCDB paths (" << pathsCCDB.size() << ")! Please check your configurables.";
115+
LOG(fatal) << "Number of expected models (" << static_cast<int>(mNModels) << ") different from the number of CCDB paths (" << pathsCCDB.size() << ")! Please check your configurables.";
116116
}
117117

118118
// check that the path is unique for each BDT model (otherwise CCDB download does not work as expected)
@@ -140,7 +140,7 @@ class MlResponse
140140
void setModelPathsLocal(const std::vector<std::string>& onnxFiles)
141141
{
142142
if (onnxFiles.size() != mNModels) {
143-
LOG(fatal) << "Number of expected models (" << mNModels << ") different from the one set (" << onnxFiles.size() << ")! Please check your configurables.";
143+
LOG(fatal) << "Number of expected models (" << static_cast<int>(mNModels) << ") different from the one set (" << onnxFiles.size() << ")! Please check your configurables.";
144144
}
145145
mPaths = onnxFiles;
146146
}

0 commit comments

Comments
 (0)