From: Bram Moolenaar Date: Tue, 11 Feb 2020 21:37:35 +0000 (+0100) Subject: patch 8.2.0244: compiler warning in Lua interface X-Git-Tag: v8.2.0244 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5f1d3ae8a8264292a53aad099e78a9b4a7bad375;p=vim patch 8.2.0244: compiler warning in Lua interface Problem: Compiler warning in Lua interface. Solution: Add type cast. (Ken Takata, closes #5621) --- diff --git a/src/if_lua.c b/src/if_lua.c index 1eb7a77a1..8c1638a3a 100644 --- a/src/if_lua.c +++ b/src/if_lua.c @@ -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]); } diff --git a/src/version.c b/src/version.c index 71513f3b7..2c14352d8 100644 --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 244, /**/ 243, /**/