From 0419d84ca639637e144ac9600e64705c3e5c0f09 Mon Sep 17 00:00:00 2001 From: vedhavyas Date: Sat, 4 Jan 2020 12:53:24 +0100 Subject: [PATCH] unsafe pointer to ctx --- bridge.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge.go b/bridge.go index 7da6b40..9fc55c5 100644 --- a/bridge.go +++ b/bridge.go @@ -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]