Closed x87 closed 1 year ago
Memory.Fn.ThiscallU8 fails with
Memory.Fn.ThiscallU8
Error converting from js 'i32' into type 'i8': Overflow
workaround: use ThiscallI32 and convert a 32-bit value to a 8-bit using & 255
& 255
let res = Memory.Fn.ThiscallI32(addr, struct)(arg1, arg2); return res & 255
Fixed in 1.2.1
Memory.Fn.ThiscallU8
fails with