diff options
| author | Mike Pall <mike> | 2019-08-10 00:54:41 +0200 |
|---|---|---|
| committer | Mike Pall <mike> | 2019-08-10 00:54:41 +0200 |
| commit | 0cd643d7cfc21bc8b6153d42b86a71d557270988 (patch) | |
| tree | 2bdd8d34b3c12857796557665f91d42d84a1ffcf | |
| parent | 51e013934b6a4f3c47180f34a63388d93cc046ef (diff) | |
| download | luajit-0cd643d7cfc21bc8b6153d42b86a71d557270988.tar.gz luajit-0cd643d7cfc21bc8b6153d42b86a71d557270988.tar.bz2 luajit-0cd643d7cfc21bc8b6153d42b86a71d557270988.zip | |
Fix debug.getinfo() argument check.
Thanks to Sergey Ostanevich.
| -rw-r--r-- | src/lj_debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_debug.c b/src/lj_debug.c index a684302c..7222e2ac 100644 --- a/src/lj_debug.c +++ b/src/lj_debug.c | |||
| @@ -440,7 +440,7 @@ int lj_debug_getinfo(lua_State *L, const char *what, lj_Debug *ar, int ext) | |||
| 440 | GCfunc *fn; | 440 | GCfunc *fn; |
| 441 | if (*what == '>') { | 441 | if (*what == '>') { |
| 442 | TValue *func = L->top - 1; | 442 | TValue *func = L->top - 1; |
| 443 | api_check(L, tvisfunc(func)); | 443 | if (!tvisfunc(func)) return 0; |
| 444 | fn = funcV(func); | 444 | fn = funcV(func); |
| 445 | L->top--; | 445 | L->top--; |
| 446 | what++; | 446 | what++; |
