diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-08-29 13:23:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-29 13:23:43 +0200 |
commit | e6af1cf250cb3a5e4434011333ee6de6e91a55ea (patch) | |
tree | be3ae6f71c0c3893194221719e393046e305ddf0 /src/nvim/highlight.c | |
parent | 5fe6bde296569e275a0b83d497a54611f73c410a (diff) | |
parent | 20305494f8189994a6dc39cd450837a8f9e58dee (diff) | |
download | rneovim-e6af1cf250cb3a5e4434011333ee6de6e91a55ea.tar.gz rneovim-e6af1cf250cb3a5e4434011333ee6de6e91a55ea.tar.bz2 rneovim-e6af1cf250cb3a5e4434011333ee6de6e91a55ea.zip |
Merge pull request #19971 from dundargoc/refactor/remove-casts
refactor: remove redundant casts
Diffstat (limited to 'src/nvim/highlight.c')
-rw-r--r-- | src/nvim/highlight.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/highlight.c b/src/nvim/highlight.c index 3e3d03fa9c..a78b933108 100644 --- a/src/nvim/highlight.c +++ b/src/nvim/highlight.c @@ -223,7 +223,7 @@ int ns_get_hl(NS *ns_hl, int hl_id, bool link, bool nodefault) } } - it.attr_id = fallback ? -1 : hl_get_syn_attr((int)ns_id, hl_id, attrs); + it.attr_id = fallback ? -1 : hl_get_syn_attr(ns_id, hl_id, attrs); it.version = p->hl_valid - tmp; it.is_default = attrs.rgb_ae_attr & HL_DEFAULT; it.link_global = attrs.rgb_ae_attr & HL_GLOBAL; @@ -406,7 +406,7 @@ void update_ns_hl(int ns_id) } int *hl_attrs = **alloc; - for (int hlf = 0; hlf < (int)HLF_COUNT; hlf++) { + for (int hlf = 0; hlf < HLF_COUNT; hlf++) { int id = syn_check_group(hlf_names[hlf], STRLEN(hlf_names[hlf])); bool optional = (hlf == HLF_INACTIVE || hlf == HLF_NFLOAT); hl_attrs[hlf] = hl_get_ui_attr(ns_id, hlf, id, optional); |