Skip to content

Commit

Permalink
add a check
Browse files Browse the repository at this point in the history
  • Loading branch information
actboy168 committed Apr 26, 2024
1 parent 44196e5 commit 1cef2da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions binding/lua_epoll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ namespace bee::lua_epoll {
};

static net::fd_t ep_tofd(lua_State *L, int idx) {
luaL_checktype(L, idx, LUA_TUSERDATA);
return lua::toudata<net::fd_t>(L, idx);
}

Expand Down

0 comments on commit 1cef2da

Please sign in to comment.