diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2020-01-06 06:52:52 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-06 06:52:52 -0800 |
commit | 83b0054b87f82583873a6e7ef291507c580618b1 (patch) | |
tree | 1e3e8c3ee47b084e774c65f16950350afbd7a1cf /test/unit/eval/helpers.lua | |
parent | fa9b057d356edb9de7c778d62aed8d2451de56fb (diff) | |
parent | 83083dd47b0c2880e4e1401f1c751013c533d57f (diff) | |
download | rneovim-83b0054b87f82583873a6e7ef291507c580618b1.tar.gz rneovim-83b0054b87f82583873a6e7ef291507c580618b1.tar.bz2 rneovim-83b0054b87f82583873a6e7ef291507c580618b1.zip |
Merge #11674 'vim-patch:8.0.1786,8.1.{851,1308,1309,1579}'
Diffstat (limited to 'test/unit/eval/helpers.lua')
-rw-r--r-- | test/unit/eval/helpers.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/eval/helpers.lua b/test/unit/eval/helpers.lua index 3d1c42c3a0..bcd7c750c5 100644 --- a/test/unit/eval/helpers.lua +++ b/test/unit/eval/helpers.lua @@ -406,7 +406,7 @@ end local alloc_logging_helpers = { list = function(l) return {func='calloc', args={1, ffi.sizeof('list_T')}, ret=void(l)} end, li = function(li) return {func='malloc', args={ffi.sizeof('listitem_T')}, ret=void(li)} end, - dict = function(d) return {func='malloc', args={ffi.sizeof('dict_T')}, ret=void(d)} end, + dict = function(d) return {func='calloc', args={1, ffi.sizeof('dict_T')}, ret=void(d)} end, di = function(di, size) size = alloc_len(size, function() return di.di_key end) return {func='malloc', args={ffi.offsetof('dictitem_T', 'di_key') + size + 1}, ret=void(di)} |