aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/highlight_group.c
diff options
context:
space:
mode:
authorii14 <59243201+ii14@users.noreply.github.com>2023-04-07 21:08:16 +0200
committerGitHub <noreply@github.com>2023-04-07 21:08:16 +0200
commit04933b1ea968f958d2541dd65fd33ebb503caac3 (patch)
tree430e333892c440dccce4d1b4606c83ab36f817c5 /src/nvim/highlight_group.c
parent9408f2dcf7cade2631688300e9b58eed6bc5219a (diff)
downloadrneovim-04933b1ea968f958d2541dd65fd33ebb503caac3.tar.gz
rneovim-04933b1ea968f958d2541dd65fd33ebb503caac3.tar.bz2
rneovim-04933b1ea968f958d2541dd65fd33ebb503caac3.zip
refactor: remove redundant casts
Diffstat (limited to 'src/nvim/highlight_group.c')
-rw-r--r--src/nvim/highlight_group.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/highlight_group.c b/src/nvim/highlight_group.c
index 0acf1989c3..d971110d9d 100644
--- a/src/nvim/highlight_group.c
+++ b/src/nvim/highlight_group.c
@@ -3002,7 +3002,7 @@ RgbValue name_to_color(const char *name, int *idx)
&& isxdigit((uint8_t)name[6]) && name[7] == NUL) {
// rgb hex string
*idx = kColorIdxHex;
- return (RgbValue)strtol((char *)(name + 1), NULL, 16);
+ return (RgbValue)strtol(name + 1, NULL, 16);
} else if (!STRICMP(name, "bg") || !STRICMP(name, "background")) {
*idx = kColorIdxBg;
return normal_bg;