From b9a5a2b494e4140471e62bbfebe0f2eb95caffdb Mon Sep 17 00:00:00 2001 From: Alex Turbov Date: Mon, 1 Jul 2024 00:37:36 +0400 Subject: [PATCH] cmMakefile: Replace ternary with bool => int cast --- Source/cmMakefile.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index f4e0f3b39a..b6fb5e2dd4 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -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(this->ExecutionStatusStack.size()); - val["global_frame"] = (missing == CommandMissingFromStack::Yes ? 1 : 0) + + val["global_frame"] = int(missing == CommandMissingFromStack::Yes) + static_cast(this->RecursionDepth); msg << Json::writeString(builder, val); #endif