aboutsummaryrefslogtreecommitdiff
path: root/test/unit/garray_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/garray_spec.lua')
-rw-r--r--test/unit/garray_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/garray_spec.lua b/test/unit/garray_spec.lua
index ffa0f15717..28df8a6e3f 100644
--- a/test/unit/garray_spec.lua
+++ b/test/unit/garray_spec.lua
@@ -9,7 +9,7 @@ local ffi = helpers.ffi
local to_cstr = helpers.to_cstr
local NULL = helpers.NULL
-local garray = cimport('stdlib.h', './src/nvim/garray.h')
+local garray = cimport('./src/nvim/garray.h')
local itemsize = 14
local growsize = 95
@@ -157,7 +157,7 @@ local ga_append_ints = function(garr, ...)
end
-- enhanced constructors
-local garray_ctype = ffi.typeof('garray_T[1]')
+local garray_ctype = function(...) return ffi.typeof('garray_T[1]')(...) end
local new_garray = function()
local garr = garray_ctype()
return ffi.gc(garr, ga_clear)