Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
visualfc committed Mar 24, 2023
1 parent c771b73 commit 4b8dae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion visit.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func (visit *visitor) function(fn *ssa.Function) {
if ext, ok := visit.findLinkFunc(sym); ok {
typ := visit.intp.preToType(fn.Type())
ftyp := ext.Type()
if typ != ftyp && checkFuncCompatible(typ, ftyp) {
if typ != ftyp {
ext = xtype.ConvertFunc(ext, xtype.TypeOfType(typ))
}
visit.intp.ctx.override[fnPath] = ext
Expand Down

0 comments on commit 4b8dae4

Please sign in to comment.