Skip to content

Commit

Permalink
Fix event queue parsing in TS bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
ellttBen committed Jul 21, 2022
1 parent 57fe4d6 commit 04260c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/event_queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class EventQueue {
let capacity =
(data.length - EventQueueHeader.LEN) /
(EventFill.LEN + 2 * callBackInfoLen);
let callbackInfosOffset = capacity * EventFill.LEN;
let callbackInfosOffset = EventQueueHeader.LEN + capacity * EventFill.LEN;
let eventsBuffer = data.slice(EventQueueHeader.LEN, callbackInfosOffset);
let callbackInfosBuffer = data.slice(callbackInfosOffset);
return new EventQueue({
Expand Down

0 comments on commit 04260c4

Please sign in to comment.