Skip to content

Commit 1e0a4af

Browse files
[gardening] Don't compare with FALSE.
1 parent 775a0ec commit 1e0a4af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/runtime/MutexWin32.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ using namespace swift;
2323
void ConditionPlatformHelper::wait(CONDITION_VARIABLE &condition,
2424
SRWLOCK &mutex) {
2525
BOOL result = SleepConditionVariableSRW(&condition, &mutex, INFINITE, 0);
26-
if (result == FALSE) {
26+
if (!result) {
2727
DWORD errorcode = GetLastError();
2828
fatalError(/* flags = */ 0,
2929
"'SleepConditionVariableSRW()' failed with error code %d\n",

0 commit comments

Comments
 (0)