mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
build/clang 6.0.0: fix type conversion warnings (#8235)
This commit is contained in:
parent
1ca138f236
commit
929a732d00
@ -925,7 +925,6 @@ static void tui_set_mode(UI *ui, ModeShape mode)
|
||||
}
|
||||
TUIData *data = ui->data;
|
||||
cursorentry_T c = data->cursor_shapes[mode];
|
||||
int shape = c.shape;
|
||||
|
||||
if (c.id != 0 && ui->rgb) {
|
||||
int attr = syn_id2attr(c.id);
|
||||
@ -936,7 +935,8 @@ static void tui_set_mode(UI *ui, ModeShape mode)
|
||||
}
|
||||
}
|
||||
|
||||
switch (shape) {
|
||||
int shape;
|
||||
switch (c.shape) {
|
||||
case SHAPE_BLOCK: shape = 1; break;
|
||||
case SHAPE_HOR: shape = 3; break;
|
||||
case SHAPE_VER: shape = 5; break;
|
||||
|
@ -779,7 +779,8 @@ const char *viml_pexpr_repr_token(const ParserState *const pstate,
|
||||
eltkn_opt_scope_tab[token.data.opt.scope],
|
||||
(int)token.data.opt.len, token.data.opt.name)
|
||||
TKNARGS(kExprLexPlainIdentifier, "(scope=%s,autoload=%i)",
|
||||
intchar2str(token.data.var.scope), (int)token.data.var.autoload)
|
||||
intchar2str((int)token.data.var.scope),
|
||||
(int)token.data.var.autoload)
|
||||
TKNARGS(kExprLexNumber, "(is_float=%i,base=%i,val=%lg)",
|
||||
(int)token.data.num.is_float,
|
||||
(int)token.data.num.base,
|
||||
|
Loading…
Reference in New Issue
Block a user