cl: _testpy/math

This commit is contained in:
xushiwei
2024-05-11 15:12:42 +08:00
parent 97cb312386
commit 15499ddc14
2 changed files with 30 additions and 1 deletions

View File

@@ -217,7 +217,7 @@ func (p *context) compileFuncDecl(pkg llssa.Package, f *ssa.Function) llssa.Func
if ftype == pyFunc {
// TODO(xsw): pyMod == ""
fn := pysymPrefix + p.pyMod + "." + name
pkg.NewVar(fn, types.Typ[types.Int], llssa.InC)
pkg.NewVar(fn, pkg.Prog.PyObjectPtrPtr().RawType(), llssa.InC)
}
return nil
}