diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-11 22:37:35 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-11 22:37:35 +0100 |
commit | 5f1d3ae8a8264292a53aad099e78a9b4a7bad375 (patch) | |
tree | 5e0a455be264b9ed6749524ac47aabc6b37a2cbe | |
parent | 9f6277bdde97b7767ded43a0b5a2023eb601b3b7 (diff) | |
download | vim-git-5f1d3ae8a8264292a53aad099e78a9b4a7bad375.tar.gz |
patch 8.2.0244: compiler warning in Lua interfacev8.2.0244
Problem: Compiler warning in Lua interface.
Solution: Add type cast. (Ken Takata, closes #5621)
-rw-r--r-- | src/if_lua.c | 4 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 4 insertions, 2 deletions
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 @@ -743,6 +743,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 244, +/**/ 243, /**/ 242, |