mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
Merge pull request #5826 from ZyX-I/fix-typval_encode
Refactor eval/typval_encode.h
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user