Re: Stack overflow
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Stack overflow
- From: Roberto Ierusalimschy <roberto@...>
- Date: 2002年5月02日 17:52:52 -0300
> lua.call(1, 1);
> if (lua.isnumber(1)) ret = (int)lua.tonumber(1);
You must remove this result from the stack: `tonumber' doesn't do that.
So, you need a
lua.pop(1);
after that code.
-- Roberto