]> granicus.if.org Git - vim/commitdiff
patch 8.2.0244: compiler warning in Lua interface v8.2.0244
authorBram Moolenaar <Bram@vim.org>
Tue, 11 Feb 2020 21:37:35 +0000 (22:37 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 11 Feb 2020 21:37:35 +0000 (22:37 +0100)
Problem:    Compiler warning in Lua interface.
Solution:   Add type cast. (Ken Takata, closes #5621)

src/if_lua.c
src/version.c

index 1eb7a77a143aa5556446d5a053640f94671f332a..8c1638a3a2dd0dc19c0a8890754828ac743fede5 100644 (file)
@@ -1148,7 +1148,7 @@ luaV_blob_add(lua_State *L)
        size_t i, l = 0;
        const char *s = lua_tolstring(L, 2, &l);
 
-       if (ga_grow(&b->bv_ga, l) == OK)
+       if (ga_grow(&b->bv_ga, (int)l) == OK)
            for (i = 0; i < l; ++i)
                ga_append(&b->bv_ga, s[i]);
     }
@@ -1781,7 +1781,7 @@ luaV_blob(lua_State *L)
            size_t i, l = 0;
            const char *s = lua_tolstring(L, 1, &l);
 
-           if (ga_grow(&b->bv_ga, l) == OK)
+           if (ga_grow(&b->bv_ga, (int)l) == OK)
                for (i = 0; i < l; ++i)
                    ga_append(&b->bv_ga, s[i]);
        }
index 71513f3b7d3e20040c30fde9a8f49e7f87cd5a7b..2c14352d879dac77c6730deb5a2c7b15ee3e88c2 100644 (file)
@@ -742,6 +742,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    244,
 /**/
     243,
 /**/