Skip to content

Commit 30d1f85

Browse files
author
nitrocaster
committed
Eliminate warning C4800.
1 parent df49fa4 commit 30d1f85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xrCore/Threading/Lock.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class XRCORE_API Lock
5252
lockCounter--;
5353
}
5454

55-
bool IsLocked() const { return lockCounter; }
55+
bool IsLocked() const { return !!lockCounter; }
5656

5757
private:
5858
std::recursive_mutex mutex;

0 commit comments

Comments
 (0)