aboutsummaryrefslogtreecommitdiff
path: root/test/unit/helpers.lua
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2017-01-06 21:11:33 -0500
committerGitHub <noreply@github.com>2017-01-06 21:11:33 -0500
commitb4c0c61f5caa22962ba94981dece4be8bf8a2c26 (patch)
tree6cd369e366182d25388377136e04370846573473 /test/unit/helpers.lua
parent1fee9a7151b30435947475fb410029397725f2ac (diff)
parentdd48d7b94b8a0f5b4612a3821330d508d5b4241c (diff)
downloadrneovim-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.lua2
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