Allow building with -Wshift-sign-overflow
Summary: Prior to C++14 these shifts are undefined behavior, but the unsigned version is not, so do the shifts on unsigned values before converting to the final type. Reviewed By: yfeldblum Differential Revision: D4309311 fbshipit-source-id: 914b207bac2f77a96c07a8a5df81980c672aa677
Showing
Please register or sign in to comment