diff options
author | James McCoy <jamessan@jamessan.com> | 2017-01-06 21:11:33 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-06 21:11:33 -0500 |
commit | b4c0c61f5caa22962ba94981dece4be8bf8a2c26 (patch) | |
tree | 6cd369e366182d25388377136e04370846573473 /test/unit/helpers.lua | |
parent | 1fee9a7151b30435947475fb410029397725f2ac (diff) | |
parent | dd48d7b94b8a0f5b4612a3821330d508d5b4241c (diff) | |
download | rneovim-b4c0c61f5caa22962ba94981dece4be8bf8a2c26.tar.gz rneovim-b4c0c61f5caa22962ba94981dece4be8bf8a2c26.tar.bz2 rneovim-b4c0c61f5caa22962ba94981dece4be8bf8a2c26.zip |
Merge pull request #5826 from ZyX-I/fix-typval_encode
Refactor eval/typval_encode.h
Diffstat (limited to 'test/unit/helpers.lua')
-rw-r--r-- | test/unit/helpers.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/helpers.lua b/test/unit/helpers.lua index a485a875ab..45bbaaeb10 100644 --- a/test/unit/helpers.lua +++ b/test/unit/helpers.lua @@ -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 |