aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorian Walch <florian@fwalch.com>2014-11-21 16:19:57 +0100
committerFlorian Walch <florian@fwalch.com>2014-11-27 21:08:07 +0100
commitce5d6506ba0d8241dbee94aceb56ea53a6bd1ed9 (patch)
treef47ac8e9024baa7b0dd7ae794103f02d87b7d5f4 /src
parentdc75324997be424c5cda3c99ae56bede33a41a2e (diff)
downloadrneovim-ce5d6506ba0d8241dbee94aceb56ea53a6bd1ed9.tar.gz
rneovim-ce5d6506ba0d8241dbee94aceb56ea53a6bd1ed9.tar.bz2
rneovim-ce5d6506ba0d8241dbee94aceb56ea53a6bd1ed9.zip
Wconversion: Change long to int64_t in cursor_shape.c, digraph.c.
Warnings were fixed in #1488.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/cursor_shape.c2
-rw-r--r--src/nvim/digraph.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/cursor_shape.c b/src/nvim/cursor_shape.c
index 06c8186bf9..87064b4ef3 100644
--- a/src/nvim/cursor_shape.c
+++ b/src/nvim/cursor_shape.c
@@ -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" */
diff --git a/src/nvim/digraph.c b/src/nvim/digraph.c
index 440d07aab0..6587a43452 100644
--- a/src/nvim/digraph.c
+++ b/src/nvim/digraph.c
@@ -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;