diff options
author | Greg Kaiser <gkaiser@google.com> | 2020-02-18 07:22:05 -0800 |
---|---|---|
committer | Greg Kaiser <gkaiser@google.com> | 2020-02-18 07:22:05 -0800 |
commit | 99d91d18f9f73427eced2f22642520d50c3c3b83 (patch) | |
tree | e24e45f9e21734cf1fa8de69cc2108f5a44f0765 /compiler/optimizing/graph_visualizer.cc | |
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
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions