Skip to content

Commit

Permalink
unsafe pointer to ctx
Browse files Browse the repository at this point in the history
  • Loading branch information
vedhavyas committed Jan 4, 2020
1 parent bad8bc5 commit 0419d84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func getCtxData(b *Bridge) (unsafe.Pointer, error) {

func getBridge(ctx unsafe.Pointer) *Bridge {
ictx := wasmer.IntoInstanceContext(ctx)
c := (*bctx)(ictx.Data())
c := (*bctx)((ictx.Data()).(unsafe.Pointer))
mu.RLock()
defer mu.RUnlock()
return bridges[c.n]
Expand Down

0 comments on commit 0419d84

Please sign in to comment.