if !sig.isym.Siggen() {
sig.isym.SetSiggen(true)
- if !eqtype(this, it) || this.Width < Types[Tptr].Width {
+ if !eqtype(this, it) || this.Width < int64(Widthptr) {
compiling_wrappers = 1
genwrapper(it, f, sig.isym, 1)
compiling_wrappers = 0
t := nod(OTFUNC, nil, nil)
l := []*Node{this}
- if iface != 0 && rcvr.Width < Types[Tptr].Width {
+ if iface != 0 && rcvr.Width < int64(Widthptr) {
// Building method for interface table and receiver
// is smaller than the single pointer-sized word
// that the interface call will pass in.
// Add a dummy padding argument after the
// receiver to make up the difference.
- tpad := typArray(Types[TUINT8], Types[Tptr].Width-rcvr.Width)
+ tpad := typArray(Types[TUINT8], int64(Widthptr)-rcvr.Width)
pad := nod(ODCLFIELD, newname(lookup(".pad")), typenod(tpad))
l = append(l, pad)
}