fix: Enable compiling with MSVC (#4)

This commit is contained in:
Alexey Melnichuk 2023-10-17 08:54:21 +03:00 committed by GitHub
parent 9e865ff345
commit 11545d0533
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,6 +116,7 @@ static int Liconv(lua_State *L)
char *outbuf = outbufs;
size_t obleft = CONV_BUF_SIZE;
size_t ret = -1;
luaL_Buffer b;
if (cd == NULL) {
lua_pushstring(L, "");
@ -123,7 +124,6 @@ static int Liconv(lua_State *L)
return 2;
}
luaL_Buffer b;
luaL_buffinit(L, &b);
do {