Skip to content

Commit b5c2d56

Browse files
authored
bugfix: we should use luaL_typename() with lua stack index. (#270)
1 parent 4185ffc commit b5c2d56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngx_stream_lua_cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ ngx_stream_lua_cache_load_code(ngx_log_t *log, lua_State *L,
9393

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

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

0 commit comments

Comments
 (0)