mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +00:00
refactor: remove redundant casts
This commit is contained in:
@@ -5676,7 +5676,7 @@ static Dictionary vimoption2dict(vimoption_T *opt, int req_scope, buf_T *buf, wi
|
||||
char *def_val = opt->def_val;
|
||||
if (opt->flags & P_STRING) {
|
||||
type = "string";
|
||||
def = CSTR_TO_OBJ(def_val ? (char *)def_val : "");
|
||||
def = CSTR_TO_OBJ(def_val ? def_val : "");
|
||||
} else if (opt->flags & P_NUM) {
|
||||
type = "number";
|
||||
def = INTEGER_OBJ((Integer)(intptr_t)def_val);
|
||||
|
Reference in New Issue
Block a user