HazptrDomain: fix MSVC truncation warning
Summary: The MSVC compiler complains about truncation of size_t to int: Z:\installed\folly\include\folly/synchronization/HazptrDomain.h(210): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data MSVC being very verbose, this is followed by 25 lines of template expansion. Since `shard` is a size_t due to `calc_shard` returning that type, let's simply make the shard argument of hazptr_warning_list_too_large a size_t too to silence the warning. Reviewed By: magedm Differential Revision: D24365556 fbshipit-source-id: b426cee7caaf593eb112691bc45b83e564342b0e
Showing
Please register or sign in to comment