mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:57:45 +00:00
AK: Fix OOO mistake in StackInfo.cpp
"!=" has higher priority than "=".
This commit is contained in:
parent
afe099388e
commit
69f82ede7a
1 changed files with 3 additions and 2 deletions
|
@ -45,12 +45,13 @@ StackInfo::StackInfo()
|
||||||
VERIFY_NOT_REACHED();
|
VERIFY_NOT_REACHED();
|
||||||
}
|
}
|
||||||
#elif __linux__
|
#elif __linux__
|
||||||
|
int rc;
|
||||||
pthread_attr_t attr = {};
|
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));
|
fprintf(stderr, "pthread_getattr_np: %s\n", strerror(-rc));
|
||||||
VERIFY_NOT_REACHED();
|
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));
|
fprintf(stderr, "pthread_attr_getstack: %s\n", strerror(-rc));
|
||||||
VERIFY_NOT_REACHED();
|
VERIFY_NOT_REACHED();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue