Skip to content

Commit a48da3a

Browse files
committed
Explicitly compare to zero to avoid Visual Studio warning
Visual Studio complains: forcing value to bool 'true' or 'false' (performance warning)
1 parent 8d3c9aa commit a48da3a

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)