mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
AK: Fix OOO mistake in StackInfo.cpp
"!=" has higher priority than "=".
This commit is contained in:
parent
afe099388e
commit
69f82ede7a
Notes:
sideshowbarker
2024-07-18 21:45:17 +09:00
Author: https://github.com/ihsinme 🔰 Commit: https://github.com/SerenityOS/serenity/commit/69f82ede7ab Pull-request: https://github.com/SerenityOS/serenity/pull/4494
1 changed files with 3 additions and 2 deletions
|
@ -45,12 +45,13 @@ StackInfo::StackInfo()
|
|||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
#elif __linux__
|
||||
int rc;
|
||||
pthread_attr_t attr = {};
|
||||
if (int rc = pthread_getattr_np(pthread_self(), &attr) != 0) {
|
||||
if ((rc = pthread_getattr_np(pthread_self(), &attr)) != 0) {
|
||||
fprintf(stderr, "pthread_getattr_np: %s\n", strerror(-rc));
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
if (int rc = pthread_attr_getstack(&attr, (void**)&m_base, &m_size) != 0) {
|
||||
if ((rc = pthread_attr_getstack(&attr, (void**)&m_base, &m_size)) != 0) {
|
||||
fprintf(stderr, "pthread_attr_getstack: %s\n", strerror(-rc));
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue