# HG changeset patch # User Bram Moolenaar # Date 1581457503 -3600 # Node ID 967149bbd8d354bd69bb60b4ff24435192359404 # Parent 53ee2ee9e8316f43d487a317f71d08d4916fa341 patch 8.2.0244: compiler warning in Lua interface Commit: https://github.com/vim/vim/commit/5f1d3ae8a8264292a53aad099e78a9b4a7bad375 Author: Bram Moolenaar Date: Tue Feb 11 22:37:35 2020 +0100 patch 8.2.0244: compiler warning in Lua interface Problem: Compiler warning in Lua interface. Solution: Add type cast. (Ken Takata, closes https://github.com/vim/vim/issues/5621) diff --git a/src/if_lua.c b/src/if_lua.c --- 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 --- a/src/version.c +++ b/src/version.c @@ -743,6 +743,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 244, +/**/ 243, /**/ 242,