diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2024-08-31 01:11:55 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2024-08-31 01:11:55 -0300 |
| commit | f779a91ec20ad16031de8dba9f8e194b3c90b22e (patch) | |
| tree | 1b351651e71cb1aa6edb39b96042b6f4e583312c | |
| parent | 75254801cb68f944f3be1e30c9807babdae194c5 (diff) | |
| download | lua-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -142,7 +142,7 @@ static int l_checkmode (const char *mode) { | |||
| 142 | typedef luaL_Stream LStream; | 142 | typedef 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 | ||
