[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: struct library
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 5 Nov 2012 13:29:17 -0200
> The more elegant fix would be:
>
> --- struct.c Wed Jul 04 20:54:36 2012
> +++ work\struct.c Mon Nov 05 16:08:22 2012
> @@ -301,7 +301,7 @@
> size_t size = optsize(L, opt, &fmt);
> pos += gettoalign(pos, &h, opt, size);
> luaL_argcheck(L, pos+size <= ld, 2, "data string too short");
> - luaL_checkstack(L, 1, "too many results");
> + luaL_checkstack(L, 2, "too many results");
> switch (opt) {
Yes; that is what I did ;)
-- Roberto