lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> struct library [1] fails to complete its test if Lua 5.1.5 was
> compiled with -DLUA_USE_APICHECK. The patch below fixes it.
> 
> --- struct.c	Wed Jul 04 20:54:36 2012
> +++ work\struct.c	Sun Oct 28 19:33:04 2012
> @@ -350,6 +350,7 @@
>      }
>      pos += size;
>    }
> +  luaL_checkstack(L, 1, "too many results");
>    lua_pushinteger(L, pos + 1);
>    return lua_gettop(L) - 2;
>  }
> 
> [1] http://www.inf.puc-rio.br/~roberto/struct/

Many thanks for the feedback!

-- Roberto