Commit 903be023 authored by Orvid King's avatar Orvid King Committed by Facebook Github Bot

Make an implicit conversion from int to unsigned int in hazptr explicit

Summary: It was spamming the MSVC build log with warnings.

Reviewed By: magedm

Differential Revision: D7954677

fbshipit-source-id: 1f2d1163483518382543aacb7e8fbc17e291e650
parent d460a7dc
......@@ -422,7 +422,7 @@ inline bool hazptr_obj_base_refcounted<T, D>::release_ref() {
oldval = refcount_.fetch_sub(1);
} else {
if (kIsDebug) {
refcount_.store(-1);
refcount_.store(static_cast<decltype(refcount_)>(-1));
}
}
HAZPTR_DEBUG_PRINT(this << " " << oldval);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment