mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-14 04:02:09 +03:00
cmMakefile: Replace ternary with bool => int cast
This commit is contained in:
1 parent
d39b8044b6
commit
b9a5a2b494
1 file changed
+2
-2
@@ -370,9 +370,9 @@ void cmMakefile::PrintCommandTrace(cmListFileFunction const& lff,
|
||||
val["args"].append(arg);
|
||||
}
|
||||
val["time"] = cmSystemTools::GetTime();
|
||||
val["frame"] = (missing == CommandMissingFromStack::Yes ? 1 : 0) +
|
||||
val["frame"] = int(missing == CommandMissingFromStack::Yes) +
|
||||
static_cast<Json::Value::UInt64>(this->ExecutionStatusStack.size());
|
||||
val["global_frame"] = (missing == CommandMissingFromStack::Yes ? 1 : 0) +
|
||||
val["global_frame"] = int(missing == CommandMissingFromStack::Yes) +
|
||||
static_cast<Json::Value::UInt64>(this->RecursionDepth);
|
||||
msg << Json::writeString(builder, val);
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user