aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2024-08-31 01:11:55 -0300
committerHisham Muhammad <hisham@gobolinux.org>2024-08-31 01:11:55 -0300
commitf779a91ec20ad16031de8dba9f8e194b3c90b22e (patch)
tree1b351651e71cb1aa6edb39b96042b6f4e583312c
parent75254801cb68f944f3be1e30c9807babdae194c5 (diff)
downloadlua-compat-5.3-f779a91ec20ad16031de8dba9f8e194b3c90b22e.tar.gz
lua-compat-5.3-f779a91ec20ad16031de8dba9f8e194b3c90b22e.tar.bz2
lua-compat-5.3-f779a91ec20ad16031de8dba9f8e194b3c90b22e.zip
revert change in tolstream
-rw-r--r--liolib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/liolib.c b/liolib.c
index 7f425c1..8a9e75c 100644
--- a/liolib.c
+++ b/liolib.c
@@ -142,7 +142,7 @@ static int l_checkmode (const char *mode) {
142typedef luaL_Stream LStream; 142typedef luaL_Stream LStream;
143 143
144 144
145#define tolstream(L) (luaL_checktype(L, 1, LUA_TUSERDATA), (LStream *)lua_touserdata(L, 1)) 145#define tolstream(L) ((LStream *)luaL_checkudata(L, 1, LUA_FILEHANDLE))
146 146
147#define isclosed(p) ((p)->closef == NULL) 147#define isclosed(p) ((p)->closef == NULL)
148 148