summaryrefslogtreecommitdiff
path: root/src/support
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@chromium.org>2016-02-03 15:01:43 -0800
committerJF Bastien <jfb@chromium.org>2016-02-04 01:07:38 -0800
commitddaca4202886f036bf525eb174a1b2fd339fa42c (patch)
treee8e1ae4e143e046849457e5068a4964c40a085d3 /src/support
parent26d5aa903a1f5908e26e63095fd92749e1bc9544 (diff)
downloadbinaryen-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/support')
0 files changed, 0 insertions, 0 deletions