mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Fix debug.getinfo() argument check.
Thanks to Sergey Ostanevich.
This commit is contained in:
parent
51e013934b
commit
0cd643d7cf
@ -440,7 +440,7 @@ int lj_debug_getinfo(lua_State *L, const char *what, lj_Debug *ar, int ext)
|
|||||||
GCfunc *fn;
|
GCfunc *fn;
|
||||||
if (*what == '>') {
|
if (*what == '>') {
|
||||||
TValue *func = L->top - 1;
|
TValue *func = L->top - 1;
|
||||||
api_check(L, tvisfunc(func));
|
if (!tvisfunc(func)) return 0;
|
||||||
fn = funcV(func);
|
fn = funcV(func);
|
||||||
L->top--;
|
L->top--;
|
||||||
what++;
|
what++;
|
||||||
|
Loading…
Reference in New Issue
Block a user