diff options
author | Derek Schuff <dschuff@chromium.org> | 2016-02-03 15:01:43 -0800 |
---|---|---|
committer | JF Bastien <jfb@chromium.org> | 2016-02-04 01:07:38 -0800 |
commit | ddaca4202886f036bf525eb174a1b2fd339fa42c (patch) | |
tree | e8e1ae4e143e046849457e5068a4964c40a085d3 /src/wasm-dis.cpp | |
parent | 26d5aa903a1f5908e26e63095fd92749e1bc9544 (diff) | |
download | binaryen-ddaca4202886f036bf525eb174a1b2fd339fa42c.tar.gz binaryen-ddaca4202886f036bf525eb174a1b2fd339fa42c.tar.bz2 binaryen-ddaca4202886f036bf525eb174a1b2fd339fa42c.zip |
Use unsigned types to evaluate i32 and i64 binary operators
Instead of defaulting to signed types and casting as necessary, use
unsigned types. Explicitly make signed copies of them and us them where
appropriate, avoiding lots of casting and improving readability. Avoids
undefined behavior of signed overflow.
Diffstat (limited to 'src/wasm-dis.cpp')
0 files changed, 0 insertions, 0 deletions