unsafe pointer to ctx
This commit is contained in:
1 file changed
+1
-1
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user