You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by je...@apache.org on 2019/11/03 18:07:48 UTC
[thrift] 02/02: THRIFT-4992 thrift lua TcompactProtocol bug fix
#1881 Client: Lua Patch: xiongjieqing
This is an automated email from the ASF dual-hosted git repository.
jensg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git
commit a5b2bf5b0bc82545b26b7a42bbf7b5dc9ef51b33
Author: xiongjieqing <xi...@gmail.com>
AuthorDate: Thu Sep 26 18:27:25 2019 +0800
THRIFT-4992 thrift lua TcompactProtocol bug fix #1881
Client: Lua
Patch: xiongjieqing <xi...@gmail.com>
---
lib/lua/TCompactProtocol.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/lua/TCompactProtocol.lua b/lib/lua/TCompactProtocol.lua
index 877595a..7b75967 100644
--- a/lib/lua/TCompactProtocol.lua
+++ b/lib/lua/TCompactProtocol.lua
@@ -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)