Skip to content

Commit ece7a67

Browse files
authored
Merge pull request #3367 from tautschnig/vs-zero
Explicitly compare to zero to avoid Visual Studio warning [blocks: #2310]
2 parents 80fe7e8 + a48da3a commit ece7a67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/small_shared_two_way_ptr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ class small_shared_two_way_pointeet
272272

273273
bool is_derived_v() const
274274
{
275-
return use_count_ & ~mask;
275+
return (use_count_ & ~mask) != 0;
276276
}
277277

278278
bool is_same_type(const small_shared_two_way_pointeet &other) const

0 commit comments

Comments
 (0)