mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[gardening] Don't compare with FALSE.
This commit is contained in:
@@ -23,7 +23,7 @@ using namespace swift;
|
||||
void ConditionPlatformHelper::wait(CONDITION_VARIABLE &condition,
|
||||
SRWLOCK &mutex) {
|
||||
BOOL result = SleepConditionVariableSRW(&condition, &mutex, INFINITE, 0);
|
||||
if (result == FALSE) {
|
||||
if (!result) {
|
||||
DWORD errorcode = GetLastError();
|
||||
fatalError(/* flags = */ 0,
|
||||
"'SleepConditionVariableSRW()' failed with error code %d\n",
|
||||
|
||||
Reference in New Issue
Block a user