cmMakefile: Replace ternary with bool => int cast

This commit is contained in:
Alex Turbov authored and Brad King committed 2024-07-18 10:29:45 -04:00
1 parent d39b8044b6
commit b9a5a2b494
1 file changed
+2 -2
+2 -2
View File
@@ -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