Merge pull request #5826 from ZyX-I/fix-typval_encode

Refactor eval/typval_encode.h
This commit is contained in:
James McCoy
2017-01-06 21:11:33 -05:00
committed by GitHub
12 changed files with 1534 additions and 806 deletions

View File

@@ -129,7 +129,7 @@ end
local cstr = ffi.typeof('char[?]')
local function to_cstr(string)
return cstr((string.len(string)) + 1, string)
return cstr(#string + 1, string)
end
-- initialize some global variables, this is still necessary to unit test