]> Cypherpunks.ru repositories - gostls13.git/commit
misc/wasm: make sure sp is unsigned
authorRichard Musiol <mail@richard-musiol.de>
Sun, 11 Oct 2020 11:33:53 +0000 (13:33 +0200)
committerRichard Musiol <neelance@gmail.com>
Wed, 21 Oct 2020 09:34:39 +0000 (09:34 +0000)
commit9848e93cb76f068b97e8ea342c33cc09b553790f
tree160e4ea386f5d51a58ee8e50384883d51c3076fc
parent491fe1b959bf6a0657cba2e3db831ffd4bdf7674
misc/wasm: make sure sp is unsigned

An i32 passed from WebAssembly to JavaScript is always read as a signed
integer. Use the bitshift operator to turn it into an unsigned integer.

Fixes #40923

Change-Id: Ia91ed2145dd2fc3071e2fc22b86ebfcb3c1e9f4f
Reviewed-on: https://go-review.googlesource.com/c/go/+/261358
Trust: Richard Musiol <neelance@gmail.com>
Run-TryBot: Richard Musiol <neelance@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
misc/wasm/wasm_exec.js