Skip to content

Commit

Permalink
if_lua: Suppress warning
Browse files Browse the repository at this point in the history
  • Loading branch information
k-takata committed Feb 11, 2020
1 parent 99234f2 commit 4605d53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/if_lua.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
Expand Down Expand Up @@ -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]);
}
Expand Down

0 comments on commit 4605d53

Please sign in to comment.