mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.0244: compiler warning in Lua interface
Problem: Compiler warning in Lua interface. Solution: Add type cast. (Ken Takata, closes #5621)
This commit is contained in:
@@ -1148,7 +1148,7 @@ luaV_blob_add(lua_State *L)
|
|||||||
size_t i, l = 0;
|
size_t i, l = 0;
|
||||||
const char *s = lua_tolstring(L, 2, &l);
|
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)
|
for (i = 0; i < l; ++i)
|
||||||
ga_append(&b->bv_ga, s[i]);
|
ga_append(&b->bv_ga, s[i]);
|
||||||
}
|
}
|
||||||
@@ -1781,7 +1781,7 @@ luaV_blob(lua_State *L)
|
|||||||
size_t i, l = 0;
|
size_t i, l = 0;
|
||||||
const char *s = lua_tolstring(L, 1, &l);
|
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)
|
for (i = 0; i < l; ++i)
|
||||||
ga_append(&b->bv_ga, s[i]);
|
ga_append(&b->bv_ga, s[i]);
|
||||||
}
|
}
|
||||||
|
@@ -742,6 +742,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
244,
|
||||||
/**/
|
/**/
|
||||||
243,
|
243,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user