Dead code in lauxlib.c

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Dead code in lauxlib.c

Gavin Wraith
Am I right in thinking that in lauxlib.c, in the body of
static int findfield(..........) line 54 should be changed

--     else if (findfield(L, objidx, level - 1)) {  /* try recursively */
++     else if (found = findfield(L, objidx, level - 1)) { /* try recursively */

?
--
Gavin Wraith ([hidden email])
Home page: http://www.wra1th.plus.com/

Reply | Threaded
Open this post in threaded view
|

Re: Dead code in lauxlib.c

Tony Finch
Gavin Wraith <[hidden email]> wrote:

> Am I right in thinking that in lauxlib.c, in the body of
> static int findfield(..........) line 54 should be changed
>
> --     else if (findfield(L, objidx, level - 1)) {  /* try recursively */
> ++     else if (found = findfield(L, objidx, level - 1)) { /* try recursively */
>
> ?

Or just remove all references to the "found" variable.

Tony.
--
f.anthony.n.finch  <[hidden email]>  http://dotat.at/
Wight, Portland: West or northwest 4 or 5 backing south or southwest 4. Slight
or moderate. Showers. Moderate or good.