commit | 99d91d18f9f73427eced2f22642520d50c3c3b83 | [log] [tgz] |
---|---|---|
author | Greg Kaiser <gkaiser@google.com> | Tue Feb 18 07:22:05 2020 -0800 |
committer | Greg Kaiser <gkaiser@google.com> | Tue Feb 18 07:22:05 2020 -0800 |
tree | e24e45f9e21734cf1fa8de69cc2108f5a44f0765 | |
parent | 5265419a52ad11cea4771891c1269feaf56d7e40 [diff] |
Avoid implementation-defined behavior On platforms where 'int' is 32 bits, shifting an 'int' by 31 bits is implementation-defined behavior. While our toolchain is almost certainly doing what we expect here, we switch to shifting an unsigned to assure it always does the right thing. Test: TreeHugger Change-Id: Ied2b5c98a27a43e091bf5819d1b37cc7b43b2906