Skip to content

Commit

Permalink
revert change in tolstream
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamhm committed Aug 31, 2024
1 parent 7525480 commit f779a91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion liolib.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ static int l_checkmode (const char *mode) {
typedef luaL_Stream LStream;


#define tolstream(L) (luaL_checktype(L, 1, LUA_TUSERDATA), (LStream *)lua_touserdata(L, 1))
#define tolstream(L) ((LStream *)luaL_checkudata(L, 1, LUA_FILEHANDLE))

#define isclosed(p) ((p)->closef == NULL)

Expand Down

0 comments on commit f779a91

Please sign in to comment.