message-size-increase #3

Merged
sashakoshka merged 227 commits from message-size-increase into main 2025-09-07 19:27:38 -06:00
Showing only changes of commit c18e251b4a - Show all commits

View File

@ -662,7 +662,7 @@ func (this *Generator) generateDecodeBranch(hash [16]byte, typ Type) (n int, err
n += nn; if err != nil { return n, err }
nn, err = this.printf(", %s)\n", lengthVar)
n += nn; if err != nil { return n, err }
nn, err = this.iprintf("for index := range %s {\n", lengthVar)
nn, err = this.iprintf("for index := range int(%s) {\n", lengthVar)
n += nn; if err != nil { return n, err }
this.push()
nn, err = this.generateDecodeValue(typ.Element, "(*this)[index]", elementTagVar)
@ -691,7 +691,7 @@ func (this *Generator) generateDecodeBranch(hash [16]byte, typ Type) (n int, err
// problems
// read fields
nn, err = this.iprintf("for %s = range %s {\n", indexVar, lengthVar)
nn, err = this.iprintf("for %s = range int(%s) {\n", indexVar, lengthVar)
n += nn; if err != nil { return n, err }
this.push()
// read field header