diff options
author | Mike Pall <mike> | 2020-06-13 00:52:54 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2020-06-15 02:52:00 +0200 |
commit | 8ae5170cdc9c307bd81019b3e014391c9fd00581 (patch) | |
tree | ccf9f17035d0754c1758faee209e9a26b4e03418 /src/lj_load.c | |
parent | 8b55054473452963f24b01efb7c4cc72497c74ec (diff) | |
download | luajit-8ae5170cdc9c307bd81019b3e014391c9fd00581.tar.gz luajit-8ae5170cdc9c307bd81019b3e014391c9fd00581.tar.bz2 luajit-8ae5170cdc9c307bd81019b3e014391c9fd00581.zip |
Improve assertions.
Diffstat (limited to 'src/lj_load.c')
-rw-r--r-- | src/lj_load.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_load.c b/src/lj_load.c index 746bf428..e5918c04 100644 --- a/src/lj_load.c +++ b/src/lj_load.c | |||
@@ -159,7 +159,7 @@ LUALIB_API int luaL_loadstring(lua_State *L, const char *s) | |||
159 | LUA_API int lua_dump(lua_State *L, lua_Writer writer, void *data) | 159 | LUA_API int lua_dump(lua_State *L, lua_Writer writer, void *data) |
160 | { | 160 | { |
161 | cTValue *o = L->top-1; | 161 | cTValue *o = L->top-1; |
162 | api_check(L, L->top > L->base); | 162 | lj_checkapi(L->top > L->base, "top slot empty"); |
163 | if (tvisfunc(o) && isluafunc(funcV(o))) | 163 | if (tvisfunc(o) && isluafunc(funcV(o))) |
164 | return lj_bcwrite(L, funcproto(funcV(o)), writer, data, 0); | 164 | return lj_bcwrite(L, funcproto(funcV(o)), writer, data, 0); |
165 | else | 165 | else |