From 11545d05330eb18239f3878ba4f1dc96af005b22 Mon Sep 17 00:00:00 2001 From: Alexey Melnichuk Date: Tue, 17 Oct 2023 08:54:21 +0300 Subject: [PATCH] fix: Enable compiling with MSVC (#4) --- luaiconv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luaiconv.c b/luaiconv.c index 72d9dfc..eff93a9 100644 --- a/luaiconv.c +++ b/luaiconv.c @@ -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 {