Assemble kernel on the client #1
9
asm.js
9
asm.js
@@ -593,9 +593,14 @@ class Parser {
|
||||
if (value == null) {
|
||||
action.symbol = token;
|
||||
} else {
|
||||
if (value > 0xffff)
|
||||
if (value > 0xffffffff)
|
||||
console.error(`WARNING: Value ${token} is truncated`);
|
||||
action.value = [ value & 0xff, (value >> 8) & 0xff ];
|
||||
action.value = [
|
||||
value & 0xff,
|
||||
(value >> 8) & 0xff,
|
||||
(value >> 16) & 0xff,
|
||||
(value >> 24) & 0xff,
|
||||
];
|
||||
}
|
||||
return action;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user