Skip to content

Commit

Permalink
fix: calculate the index of the slot instead of relying on the value …
Browse files Browse the repository at this point in the history
…of it
  • Loading branch information
agparadiso committed Jan 10, 2025
1 parent 7dbb1b0 commit ff7307e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/workflows/wasm/host/wasip1.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,8 @@ func pollOneoff(caller *wasmtime.Caller, subscriptionptr int32, eventsptr int32,
eventType := subs[inOffset+8]
argBuf := subs[inOffset+8+8:]

outOffset := events[i*eventsLen]

slot := events[outOffset:]
outOffset := i * eventsLen
slot := events[outOffset : outOffset+eventsLen]
switch eventType {
case eventTypeClock:
// We want to stub out clock events,
Expand Down

0 comments on commit ff7307e

Please sign in to comment.