[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: small bug in lua.c in 5.1 work6
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 20 Jun 2005 16:26:18 -0300
> In 5.1work 6, the test at the third line was incorrectly simplified to:
>
> strstr(lua_tostring(L, -1), "<eof>") != NULL) {
The intention was to avoid depending on the quote used around "<eof>".
The fix is simple:
strstr(lua_tostring(L, -1), "near " LUA_QL("<eof>")) != NULL) {
Sorry about that.
--lhf