diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-08-09 23:32:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-09 23:32:23 +0200 |
commit | 5aa97937e7844f2d3d5e1b015e6749d1f2955697 (patch) | |
tree | 8ed4074d72908e0f282b27136bae7d04184631f5 /src | |
parent | e2d6e67bbc7a09496eddaeb27af4d2d135452cdb (diff) | |
parent | 11a6dac8c935a530c18fd1c7488c358f43b80ff5 (diff) | |
download | rneovim-5aa97937e7844f2d3d5e1b015e6749d1f2955697.tar.gz rneovim-5aa97937e7844f2d3d5e1b015e6749d1f2955697.tar.bz2 rneovim-5aa97937e7844f2d3d5e1b015e6749d1f2955697.zip |
Merge #10706 from janlazo/vim-8.1.1465
vim-patch:8.1.{1465,1467}
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/testdir/samples/memfile_test.c | 2 | ||||
-rw-r--r-- | src/nvim/testdir/test_cscope.vim | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/testdir/samples/memfile_test.c b/src/nvim/testdir/samples/memfile_test.c index 3c8f108255..c71a5c8f40 100644 --- a/src/nvim/testdir/samples/memfile_test.c +++ b/src/nvim/testdir/samples/memfile_test.c @@ -70,7 +70,7 @@ test_mf_hash(void) assert(mf_hash_find(&ht, key) == NULL); /* allocate and add new item */ - item = (mf_hashitem_T *)lalloc_clear(sizeof(mf_hashtab_T), FALSE); + item = (mf_hashitem_T *)lalloc_clear(sizeof(*item), FALSE); assert(item != NULL); item->mhi_key = key; mf_hash_add_item(&ht, item); diff --git a/src/nvim/testdir/test_cscope.vim b/src/nvim/testdir/test_cscope.vim index 067fd85819..e5dab05511 100644 --- a/src/nvim/testdir/test_cscope.vim +++ b/src/nvim/testdir/test_cscope.vim @@ -123,8 +123,8 @@ func Test_cscopeWithCscopeConnections() if cs_version >= 15.8 for cmd in ['cs find a item', 'cs find 9 item'] let a = execute(cmd) - call assert_equal(['', '(1 of 4): <<test_mf_hash>> item = (mf_hashitem_T *)lalloc_clear(sizeof(mf_hashtab_T), FALSE);'], split(a, '\n', 1)) - call assert_equal(' item = (mf_hashitem_T *)lalloc_clear(sizeof(mf_hashtab_T), FALSE);', getline('.')) + call assert_equal(['', '(1 of 4): <<test_mf_hash>> item = (mf_hashitem_T *)lalloc_clear(sizeof(*item), FALSE);'], split(a, '\n', 1)) + call assert_equal(' item = (mf_hashitem_T *)lalloc_clear(sizeof(*item), FALSE);', getline('.')) cnext call assert_equal(' item = mf_hash_find(&ht, key);', getline('.')) cnext |