Skip to content
Snippets Groups Projects
Commit 1cc1dd89 authored by dg's avatar dg
Browse files

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@5507 51575b47-30f0-44d4-a5cc-537603b46e54
parent 71792965
No related branches found
No related tags found
No related merge requests found
......@@ -76,12 +76,13 @@ function _M:set(str, ...)
if self.add_map_str then
if type(self.add_map_str) == "string" then
str = self.add_map_str:toTString()
table.append(str, {self.add_map_str:toTString()})
elseif type(self.add_map_str) == "table" then
str = tstring{}
str:merge(self.add_map_str)
local tstr = tstring{}
tstr:merge(self.add_map_str)
table.append(str, {tstr})
else
str = self.add_map_str
table.append(str, self.add_map_str)
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment