Skip to content

Commit 7c6fd3d

Browse files
fix rewrite usedbytes
1 parent 6d8e286 commit 7c6fd3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/tlcodegen/type_rw_struct_php.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1413,7 +1413,7 @@ func (trw *TypeRWStruct) phpStructCalculateSizesTL2Code(targetName string, args
14131413
func(cc *codecreator.PhpCodeCreator) {
14141414
if !canOmit {
14151415
cc.AddLines(fmt.Sprintf("$context_sizes->cut_tail(%s + 1);", currentSizeIndex))
1416-
cc.AddLines(fmt.Sprintf("%[1]s = 1;", usedBytesPointer))
1416+
cc.AddLines(fmt.Sprintf("%[1]s += 1;", usedBytesPointer))
14171417
} else {
14181418
cc.AddLines(fmt.Sprintf("$context_sizes->cut_tail(%s);", currentSizeIndex))
14191419
}

0 commit comments

Comments
 (0)