thrift lua TcompactProtocol bug fix

This commit is contained in:
xiongjieqing 2019-09-26 18:27:25 +08:00 committed by Jens Geyer
parent 1ce7317cae
commit 3adb44aa26

View File

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