]> granicus.if.org Git - vim/commitdiff
patch 8.1.0919: compiler warnings v8.1.0919
authorBram Moolenaar <Bram@vim.org>
Thu, 14 Feb 2019 19:55:09 +0000 (20:55 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 14 Feb 2019 19:55:09 +0000 (20:55 +0100)
Problem:    Compiler warnings.
Solution:   Add type casts. (Mike Williams)

src/message.c
src/regexp_nfa.c
src/version.c

index 4aa15eba69bbdd5748533b5a9b6c0c19f39cd778..82772fdbc03b201c4be911b6c1c07d887c2b06b9 100644 (file)
@@ -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);
index dadb9d067fb2be9b543b4b9ee63d7e32f6102680..b83e309f7cb864a794e3db5c3874e59fc322084d 100644 (file)
@@ -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;
index 73840c25131dff120e327925c604464e582be356..30b78e5ff8dc9892b23169dcf86a75e48af41ae0 100644 (file)
@@ -783,6 +783,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    919,
 /**/
     918,
 /**/