Commit d33b7adb authored by Alex Buts's avatar Alex Buts
Browse files

Re #16049 Clang issues

parent 43118844
......@@ -329,13 +329,12 @@ void GetEi::extractSpec(int64_t wsInd, double start, double end) {
childAlg->setProperty("XMin", start);
childAlg->setProperty("XMax", end);
if (wsInd < std::numeric_limits<int>::max()) {
auto ivsInd = static_cast<int>(wsInd);
childAlg->setProperty("StartWorkspaceIndex", ivsInd);
childAlg->setProperty("EndWorkspaceIndex", ivsInd);
}
else {
auto ivsInd = static_cast<int>(wsInd);
childAlg->setProperty("StartWorkspaceIndex", ivsInd);
childAlg->setProperty("EndWorkspaceIndex", ivsInd);
} else {
childAlg->setProperty("StartWorkspaceIndex", wsInd);
childAlg->setProperty("EndWorkspaceIndex", wsInd);
childAlg->setProperty("EndWorkspaceIndex", wsInd);
}
childAlg->executeAsChildAlg();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment