mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Wconversion: Change long to int64_t in cursor_shape.c, digraph.c.
Warnings were fixed in #1488.
This commit is contained in:
parent
dc75324997
commit
ce5d6506ba
@ -135,7 +135,7 @@ char_u *parse_shape_opt(int what)
|
||||
p += len;
|
||||
if (!VIM_ISDIGIT(*p))
|
||||
return (char_u *)N_("E548: digit expected");
|
||||
long digits = getdigits(&p);
|
||||
int64_t digits = getdigits(&p);
|
||||
assert(digits <= INT_MAX);
|
||||
int n = (int)digits;
|
||||
if (len == 3) { /* "ver" or "hor" */
|
||||
|
@ -1611,7 +1611,7 @@ void putdigraph(char_u *str)
|
||||
EMSG(_(e_number_exp));
|
||||
return;
|
||||
}
|
||||
long digits = getdigits(&str);
|
||||
int64_t digits = getdigits(&str);
|
||||
assert(digits <= INT_MAX);
|
||||
int n = (int)digits;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user