This commit is contained in:
bluepython508 committed 2026-10-22 12:27:19 +01:00
1 parent 3530afb854
commit 6903fcff27
2146 files changed
+112256 -190703

No files matched your search

+1 -4
View File
@@ -253,10 +253,7 @@ type InterfaceIdent struct {
func (ifi *InterfaceIdent) Len(_ int) int {
switch ifi.Type {
case typeInterfaceByName:
l := len(ifi.Name)
if l > 255 {
l = 255
}
l := min(len(ifi.Name), 255)
return 4 + (l+3)&^3
case typeInterfaceByIndex:
return 4 + 4