You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[codemod] Fix signed shift error in caffe2/torch/fb/retrieval/fused_kmean_ann_jagged_output.cu
Summary:
Bit-shifting signed variables is scary because the bit-shift can result in the signed variable becoming negative, which is often unwanted.
This diff fixes such a situation, which is often as a simple as changing `1 << 31` to `1ul << 31` or an equivalent construction.
- If you approve of this diff, please use the "Accept & Ship" button :-)
Reviewed By: wenxin0319
Differential Revision: D72536140
fbshipit-source-id: 887255469368f5b4b500dbb42ff7f3307e6f68bb
0 commit comments