mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 09:26:30 +00:00
refactor: remove redundant casts
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user