Skip to content

Commit

Permalink
Fix wrong type assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
JupiterRider committed Apr 8, 2023
1 parent 938e28a commit 49c1a7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iup/bind_callbacks.go
Original file line number Diff line number Diff line change
Expand Up @@ -2591,7 +2591,7 @@ func goIupMenuOpenCB(ih unsafe.Pointer) C.int {
}

ch := h.(cgo.Handle)
f := ch.Value().(ActionFunc)
f := ch.Value().(MenuOpenFunc)

return C.int(f((Ihandle)(ih)))
}
Expand Down

0 comments on commit 49c1a7d

Please sign in to comment.