diff options
author | Andrew Kaster <akaster@serenityos.org> | 2021-11-06 15:06:08 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-14 22:52:35 +0100 |
commit | a92132e44a638a20537f66c860f6a4ebdc41062a (patch) | |
tree | 22895c871010a0f678e7677fbd916d63ccf969bd /Kernel/ThreadTracer.h | |
parent | 6f580f2047f6fcab081d5f92ea751d8f2fb55e80 (diff) | |
download | serenity-a92132e44a638a20537f66c860f6a4ebdc41062a.zip |
Kernel: Resolve clang-tidy readability-implicit-bool-conversion warnings
... In files included from Kernel/Process.cpp and Kernel/Thread.cpp
Diffstat (limited to 'Kernel/ThreadTracer.h')
-rw-r--r-- | Kernel/ThreadTracer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/ThreadTracer.h b/Kernel/ThreadTracer.h index ba48b05263..a407f62d67 100644 --- a/Kernel/ThreadTracer.h +++ b/Kernel/ThreadTracer.h @@ -18,7 +18,7 @@ public: static ErrorOr<NonnullOwnPtr<ThreadTracer>> try_create(ProcessID tracer) { return adopt_nonnull_own_or_enomem(new (nothrow) ThreadTracer(tracer)); } ProcessID tracer_pid() const { return m_tracer_pid; } - bool has_pending_signal(u32 signal) const { return m_pending_signals & (1 << (signal - 1)); } + bool has_pending_signal(u32 signal) const { return (m_pending_signals & (1 << (signal - 1))) != 0; } void set_signal(u32 signal) { m_pending_signals |= (1 << (signal - 1)); } void unset_signal(u32 signal) { m_pending_signals &= ~(1 << (signal - 1)); } |