You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Roger Meier (JIRA)" <ji...@apache.org> on 2014/12/08 21:14:13 UTC
[jira] [Resolved] (THRIFT-2879) TMemoryBuffer: using lua string in
wrong way
[ https://issues.apache.org/jira/browse/THRIFT-2879?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Roger Meier resolved THRIFT-2879.
---------------------------------
Resolution: Fixed
Assignee: Roger Meier
committed
> TMemoryBuffer: using lua string in wrong way
> --------------------------------------------
>
> Key: THRIFT-2879
> URL: https://issues.apache.org/jira/browse/THRIFT-2879
> Project: Thrift
> Issue Type: Bug
> Components: Lua - Library
> Reporter: winsweet
> Assignee: Roger Meier
>
> 1.
> local val = string.sub(self.buffer, self.rPos, len)
> The call string.sub(s,i,j) extracts a piece of the string s,
> from the i-th to the j-th character inclusive.
> In Lua, the first character of a string has index 1.
> 2.
> self.buffer = self.buffer + buf
> self.wPos = self.wPos + buf
> .. is the string concatenation operator in Lua, not +.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)