Skip to content

Commit

Permalink
fix: Enable compiling with MSVC (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
moteus committed Oct 17, 2023
1 parent 9e865ff commit 11545d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion luaiconv.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,14 @@ 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, "");
lua_pushnumber(L, ERROR_FINALIZED);
return 2;
}

luaL_Buffer b;
luaL_buffinit(L, &b);

do {
Expand Down

0 comments on commit 11545d0

Please sign in to comment.