mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
Fix page count computation in publicSuffixList.enableWASM()
This commit is contained in:
parent
e0d2285da0
commit
f667fc2d65
@ -580,7 +580,7 @@ const enableWASM = (function() {
|
|||||||
{ imports: { memory: memory } }
|
{ imports: { memory: memory } }
|
||||||
);
|
);
|
||||||
}).then(({ instance }) => {
|
}).then(({ instance }) => {
|
||||||
const curPageCount = memory.buffer.byteLength;
|
const curPageCount = memory.buffer.byteLength >>> 16;
|
||||||
const newPageCount = pslBuffer8 !== undefined
|
const newPageCount = pslBuffer8 !== undefined
|
||||||
? pslBuffer8.byteLength + 0xFFFF >>> 16
|
? pslBuffer8.byteLength + 0xFFFF >>> 16
|
||||||
: 0;
|
: 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user