AK: Fix OOO mistake in StackInfo.cpp

"!=" has higher priority than "=".
This commit is contained in:
ihsinme 2020-12-22 14:50:20 +03:00 committed by Andreas Kling
parent afe099388e
commit 69f82ede7a
Notes: sideshowbarker 2024-07-18 21:45:17 +09:00

View file

@ -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();
}