Revert "thrift lua TcompactProtocol bug fix"

This reverts commit 3adb44aa26.
This commit is contained in:
Jens Geyer 2019-11-03 19:07:04 +01:00
parent 3adb44aa26
commit c5fadee94a

View File

@ -124,8 +124,8 @@ function TCompactProtocol:writeStructBegin(name)
end
function TCompactProtocol:writeStructEnd()
self.lastFieldId = self.lastField[self.lastFieldIndex]
self.lastFieldIndex = self.lastFieldIndex - 1
self.lastFieldId = self.lastField[self.lastFieldIndex]
end
function TCompactProtocol:writeFieldBegin(name, ttype, id)