aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2023-07-21 21:18:58 +0200
committerLuuk de Gram <luuk@degram.dev>2023-07-22 02:12:07 +0200
commit619140c0d2abd22da668747820f0ee80b497eb24 (patch)
tree9ea7d8506956202bc7560d87990b8f47b424b881 /src/Compilation.zig
parent8924f81d8cd96f5a69a54d87119a748247079a09 (diff)
downloadzig-619140c0d2abd22da668747820f0ee80b497eb24.tar.gz
zig-619140c0d2abd22da668747820f0ee80b497eb24.zip
wasm: correctly intcast signed integers
When a signed integer's bitsize is not 32 or 64, but the given bitsize and wanted bitsize are either both represented by Wasm's i32 or i64, we must either sign extend or wrap the integer.
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions