]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.037 v7.3.037
authorBram Moolenaar <Bram@vim.org>
Wed, 27 Oct 2010 10:18:00 +0000 (12:18 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 27 Oct 2010 10:18:00 +0000 (12:18 +0200)
Problem:    Compiler warnings for loss of data. (Mike Williams)
Solution:   Add type casts.

src/getchar.c
src/if_py_both.h
src/os_win32.c
src/version.c

index 05693727f643fea22db15ab56e1a4f91d6e2ff15..fb28160e54c54f9202d5975f0ff04a416fac3c72 100644 (file)
@@ -3922,7 +3922,7 @@ showmap(mp, local)
     if (mapchars != NULL)
     {
        msg_puts(mapchars);
-       len = STRLEN(mapchars);
+       len = (int)STRLEN(mapchars);
        vim_free(mapchars);
     }
 
index 4b7f185cfaaeab3e9f24e7954217e6ddd54c6f19..e435e3e5c09001ce4a4b456cd737cc6713f6a1e3 100644 (file)
@@ -154,7 +154,7 @@ writer(writefn fn, char_u *str, PyInt n)
     {
        PyInt len = ptr - str;
 
-       if (ga_grow(&io_ga, len + 1) == FAIL)
+       if (ga_grow(&io_ga, (int)(len + 1)) == FAIL)
            break;
 
        mch_memmove(((char *)io_ga.ga_data) + io_ga.ga_len, str, (size_t)len);
@@ -166,10 +166,10 @@ writer(writefn fn, char_u *str, PyInt n)
     }
 
     /* Put the remaining text into io_ga for later printing. */
-    if (n > 0 && ga_grow(&io_ga, n + 1) == OK)
+    if (n > 0 && ga_grow(&io_ga, (int)(n + 1)) == OK)
     {
        mch_memmove(((char *)io_ga.ga_data) + io_ga.ga_len, str, (size_t)n);
-       io_ga.ga_len += n;
+       io_ga.ga_len += (int)n;
     }
 }
 
index 3fdd41b6dba51827ae877e31479664bca6e08ea4..0ca47d0feade66074345ea30c3b3cf4776e3b4d7 100644 (file)
@@ -224,7 +224,8 @@ get_exe_name(void)
 
     if (exe_path == NULL && exe_name != NULL)
     {
-       exe_path = vim_strnsave(exe_name, gettail_sep(exe_name) - exe_name);
+       exe_path = vim_strnsave(exe_name,
+                                    (int)(gettail_sep(exe_name) - exe_name));
        if (exe_path != NULL)
        {
            /* Append our starting directory to $PATH, so that when doing
@@ -2374,7 +2375,7 @@ fname_case(
        /* To avoid a slow failure append "\*" when searching a directory,
         * server or network share. */
        STRCPY(szTrueNameTemp, szTrueName);
-       slen = strlen(szTrueNameTemp);
+       slen = (int)strlen(szTrueNameTemp);
        if (*porig == psepc && slen + 2 < _MAX_PATH)
            STRCPY(szTrueNameTemp + slen, "\\*");
 
index a49cd52fc987dd19418583a36772cca56d65b27c..ed599f7663d4d49467043d25f76c73297c2954fc 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    37,
 /**/
     36,
 /**/