diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-02-14 20:55:09 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-02-14 20:55:09 +0100 |
commit | 0f77d6afd506d1be4b0bef46e1d2268440e1ba88 (patch) | |
tree | 517f3860e69fef45cb273977937ed358f6082878 | |
parent | 9b5c1fcdeae75f82a2083fafbbf75ab220f6ac1e (diff) | |
download | vim-git-0f77d6afd506d1be4b0bef46e1d2268440e1ba88.tar.gz |
patch 8.1.0919: compiler warningsv8.1.0919
Problem: Compiler warnings.
Solution: Add type casts. (Mike Williams)
-rw-r--r-- | src/message.c | 4 | ||||
-rw-r--r-- | src/regexp_nfa.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/src/message.c b/src/message.c index 4aa15eba6..82772fdbc 100644 --- a/src/message.c +++ b/src/message.c @@ -2938,7 +2938,7 @@ do_more_prompt(int typed_char) mch_errmsg(char *str) { #if defined(WIN3264) && !defined(FEAT_GUI_MSWIN) - int len = STRLEN(str); + int len = (int)STRLEN(str); DWORD nwrite = 0; DWORD mode = 0; HANDLE h = GetStdHandle(STD_ERROR_HANDLE); @@ -3026,7 +3026,7 @@ mch_errmsg(char *str) mch_msg(char *str) { #if defined(WIN3264) && !defined(FEAT_GUI_MSWIN) - int len = STRLEN(str); + int len = (int)STRLEN(str); DWORD nwrite = 0; DWORD mode; HANDLE h = GetStdHandle(STD_OUTPUT_HANDLE); diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c index dadb9d067..b83e309f7 100644 --- a/src/regexp_nfa.c +++ b/src/regexp_nfa.c @@ -4800,7 +4800,7 @@ addstate_here( emsg(_(e_maxmempat)); return NULL; } - newl = (nfa_thread_T *)alloc(newsize); + newl = (nfa_thread_T *)alloc((int)newsize); if (newl == NULL) return NULL; l->len = newlen; diff --git a/src/version.c b/src/version.c index 73840c251..30b78e5ff 100644 --- a/src/version.c +++ b/src/version.c @@ -784,6 +784,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 919, +/**/ 918, /**/ 917, |