commit | c60ed9ef66e59584f8b54323018e9e6c69925c7e | [log] [tgz] |
---|---|---|
author | Tom Anderson <thomasanderson@chromium.org> | Wed Apr 11 18:39:56 2018 |
committer | Behdad Esfahbod <behdad@behdad.org> | Mon Apr 16 13:23:20 2018 |
tree | 51f5e68cbaa99a056bdff8d7c922d30d30843ca6 | |
parent | a8a6efa805fc03e790214e8a0bc55843a258d774 [diff] |
Fix undefined-shift UBSAN errors The expression "1 << 31" will cause UBSAN to complain with this error message: runtime error: left shift of 1 by 31 places cannot be represented in type 'int' The same operation on unsigned types is fine, however. This CL replaces the strings "1 <<" with "1U <<".