diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-11-26 18:58:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-26 18:58:45 +0100 |
commit | 019c8805e514428c0b999583f5aec8c9f4eb96d0 (patch) | |
tree | 1a105862628c997b46725b4f3f485bd074332cce /src/nvim/testing.c | |
parent | 319fbffc94896dd9cf0a77891d69b7fcada1fad4 (diff) | |
parent | bd22585061b66d7f71d4832b4a81e950b3c9d19d (diff) | |
download | rneovim-019c8805e514428c0b999583f5aec8c9f4eb96d0.tar.gz rneovim-019c8805e514428c0b999583f5aec8c9f4eb96d0.tar.bz2 rneovim-019c8805e514428c0b999583f5aec8c9f4eb96d0.zip |
Merge pull request #20196 from dundargoc/refactor/char_u/14
refactor: replace char_u with char 14: remove `STRLEN` part final
Diffstat (limited to 'src/nvim/testing.c')
-rw-r--r-- | src/nvim/testing.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/testing.c b/src/nvim/testing.c index f4ff27c9bc..3617670da9 100644 --- a/src/nvim/testing.c +++ b/src/nvim/testing.c @@ -188,7 +188,7 @@ static void fill_assert_error(garray_T *gap, typval_T *opt_msg_tv, char_u *exp_s if (item2 == NULL || !tv_equal(&TV_DICT_HI2DI(hi)->di_tv, &item2->di_tv, false, false)) { // item of exp_d not present in got_d or values differ. - const size_t key_len = STRLEN(hi->hi_key); + const size_t key_len = strlen(hi->hi_key); tv_dict_add_tv(exp_tv->vval.v_dict, (const char *)hi->hi_key, key_len, &TV_DICT_HI2DI(hi)->di_tv); if (item2 != NULL) { @@ -209,7 +209,7 @@ static void fill_assert_error(garray_T *gap, typval_T *opt_msg_tv, char_u *exp_s dictitem_T *item2 = tv_dict_find(exp_d, (const char *)hi->hi_key, -1); if (item2 == NULL) { // item of got_d not present in exp_d - const size_t key_len = STRLEN(hi->hi_key); + const size_t key_len = strlen(hi->hi_key); tv_dict_add_tv(got_tv->vval.v_dict, (const char *)hi->hi_key, key_len, &TV_DICT_HI2DI(hi)->di_tv); } |