Wconversion: Change long to int64_t in cursor_shape.c, digraph.c.

Warnings were fixed in #1488.
This commit is contained in:
Florian Walch 2014-11-21 16:19:57 +01:00
parent dc75324997
commit ce5d6506ba
2 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ char_u *parse_shape_opt(int what)
p += len; p += len;
if (!VIM_ISDIGIT(*p)) if (!VIM_ISDIGIT(*p))
return (char_u *)N_("E548: digit expected"); return (char_u *)N_("E548: digit expected");
long digits = getdigits(&p); int64_t digits = getdigits(&p);
assert(digits <= INT_MAX); assert(digits <= INT_MAX);
int n = (int)digits; int n = (int)digits;
if (len == 3) { /* "ver" or "hor" */ if (len == 3) { /* "ver" or "hor" */

View File

@ -1611,7 +1611,7 @@ void putdigraph(char_u *str)
EMSG(_(e_number_exp)); EMSG(_(e_number_exp));
return; return;
} }
long digits = getdigits(&str); int64_t digits = getdigits(&str);
assert(digits <= INT_MAX); assert(digits <= INT_MAX);
int n = (int)digits; int n = (int)digits;