mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-14 23:41:30 +00:00
Use long.js in JS and native i64 in WASM; Compile literals more thoroughly
This commit is contained in:
@ -217,7 +217,7 @@ export function set_memory(dest: usize, c: u8, n: usize): void {
|
||||
n -= k;
|
||||
n &= -4;
|
||||
|
||||
var c32: u32 = (-1 / 255) * c;
|
||||
var c32: u32 = <u32>-1 / 255 * c;
|
||||
|
||||
// fill head/tail up to 28 bytes each in preparation
|
||||
store<u32>(dest, c32);
|
||||
|
Reference in New Issue
Block a user