Skip to content

Commit c4a3e34

Browse files
baluschzhuizhuhaomeng
authored andcommitted
bugfix: we should use luaL_typename() with lua stack index.
1 parent 07e11f3 commit c4a3e34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngx_http_lua_cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ ngx_http_lua_cache_load_code(ngx_log_t *log, lua_State *L,
120120

121121
dd("Value associated with given key in code cache table is not code "
122122
"chunk: stack top=%d, top value type=%s\n",
123-
lua_gettop(L), lua_typename(L, -1));
123+
lua_gettop(L), luaL_typename(L, -1));
124124

125125
/* remove cache table and value from stack */
126126
lua_pop(L, 2); /* sp-=2 */

0 commit comments

Comments
 (0)