File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -629,7 +629,7 @@ func (t *funcType) in() []*rtype {
629
629
if t .inCount == 0 {
630
630
return nil
631
631
}
632
- return (* [1 << 20 ]* rtype )(add (unsafe .Pointer (t ), uadd , "t.inCount > 0" ))[:t .inCount ]
632
+ return (* [1 << 20 ]* rtype )(add (unsafe .Pointer (t ), uadd , "t.inCount > 0" ))[:t .inCount : t . inCount ]
633
633
}
634
634
635
635
func (t * funcType ) out () []* rtype {
@@ -641,7 +641,7 @@ func (t *funcType) out() []*rtype {
641
641
if outCount == 0 {
642
642
return nil
643
643
}
644
- return (* [1 << 20 ]* rtype )(add (unsafe .Pointer (t ), uadd , "outCount > 0" ))[t .inCount : t .inCount + outCount ]
644
+ return (* [1 << 20 ]* rtype )(add (unsafe .Pointer (t ), uadd , "outCount > 0" ))[t .inCount : t .inCount + outCount : t . inCount + outCount ]
645
645
}
646
646
647
647
// add returns p+x.
Original file line number Diff line number Diff line change @@ -1008,7 +1008,7 @@ func (t *funcType) in() []*rtype {
1008
1008
if t .inCount == 0 {
1009
1009
return nil
1010
1010
}
1011
- return (* [1 << 20 ]* rtype )(add (unsafe .Pointer (t ), uadd , "t.inCount > 0" ))[:t .inCount ]
1011
+ return (* [1 << 20 ]* rtype )(add (unsafe .Pointer (t ), uadd , "t.inCount > 0" ))[:t .inCount : t . inCount ]
1012
1012
}
1013
1013
1014
1014
func (t * funcType ) out () []* rtype {
@@ -1020,7 +1020,7 @@ func (t *funcType) out() []*rtype {
1020
1020
if outCount == 0 {
1021
1021
return nil
1022
1022
}
1023
- return (* [1 << 20 ]* rtype )(add (unsafe .Pointer (t ), uadd , "outCount > 0" ))[t .inCount : t .inCount + outCount ]
1023
+ return (* [1 << 20 ]* rtype )(add (unsafe .Pointer (t ), uadd , "outCount > 0" ))[t .inCount : t .inCount + outCount : t . inCount + outCount ]
1024
1024
}
1025
1025
1026
1026
// add returns p+x.
You can’t perform that action at this time.
0 commit comments