diff options
author | babenko <[email protected]> | 2025-05-06 15:27:22 +0300 |
---|---|---|
committer | babenko <[email protected]> | 2025-05-06 15:45:24 +0300 |
commit | c131e959456f9f9a4adada5623ce3bae4097a8c1 (patch) | |
tree | bb77b16f8be3c9c4d394422519f84df27973cebe | |
parent | a8066d88a9c0c0c5050c38f6a902b27d64ccf6d3 (diff) |
Avoid implicit cast to bool
commit_hash:164cdc4f4c977cf8276af152ce84992f8e7dc81b
-rw-r--r-- | yt/yt/core/threading/thread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt/yt/core/threading/thread.cpp b/yt/yt/core/threading/thread.cpp index 389cd88237f..d69a4dad4d6 100644 --- a/yt/yt/core/threading/thread.cpp +++ b/yt/yt/core/threading/thread.cpp @@ -214,7 +214,7 @@ YT_PREVENT_TLS_CACHING void TThread::ThreadMainTrampoline() public: ~TExitInterceptor() { - if (Armed_ && !std::uncaught_exceptions()) { + if (Armed_ && std::uncaught_exceptions() == 0) { if (auto* logFile = TryGetShutdownLogFile()) { ::fprintf(logFile, "%s\tThread exit interceptor triggered (ThreadId: %" PRISZT ")\n", GetInstant().ToString().c_str(), |