1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:58:11 +00:00

Kernel: Fix compilation with Clang

Co-Authored-By: Andrew Kaster <akaster@serenityos.org>
This commit is contained in:
Timothy Flynn 2021-08-16 19:05:46 -04:00 committed by Linus Groh
parent 7ea55c883b
commit eedb26110a
2 changed files with 21 additions and 11 deletions

View file

@ -805,7 +805,7 @@ bool Thread::should_ignore_signal(u8 signal) const
auto& action = m_signal_action_data[signal];
if (action.handler_or_sigaction.is_null())
return default_signal_action(signal) == DefaultSignalAction::Ignore;
if ((sighandler_t)action.handler_or_sigaction.as_ptr() == SIG_IGN)
if ((sighandler_t)action.handler_or_sigaction.get() == SIG_IGN)
return true;
return false;
}