diff options
| author | Kim Alvefur <zash@zash.se> | 2025-12-28 19:43:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-28 15:43:56 -0300 |
| commit | 31dcb88b128b06cdc2767440cfe685f0890a077f (patch) | |
| tree | 846a81ddc03e37c1372d32008ffc18126b4962db | |
| parent | 09511782201302ade916d4b250d01a6c61b56844 (diff) | |
| download | luafilesystem-31dcb88b128b06cdc2767440cfe685f0890a077f.tar.gz luafilesystem-31dcb88b128b06cdc2767440cfe685f0890a077f.tar.bz2 luafilesystem-31dcb88b128b06cdc2767440cfe685f0890a077f.zip | |
Support Lua 5.5 (#180)
| -rw-r--r-- | src/lfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -311,7 +311,7 @@ static FILE *check_file(lua_State * L, int idx, const char *funcname) | |||
| 311 | return 0; | 311 | return 0; |
| 312 | } else | 312 | } else |
| 313 | return *fh; | 313 | return *fh; |
| 314 | #elif LUA_VERSION_NUM >= 502 && LUA_VERSION_NUM <= 504 | 314 | #elif LUA_VERSION_NUM >= 502 && LUA_VERSION_NUM <= 505 |
| 315 | luaL_Stream *fh = (luaL_Stream *) luaL_checkudata(L, idx, "FILE*"); | 315 | luaL_Stream *fh = (luaL_Stream *) luaL_checkudata(L, idx, "FILE*"); |
| 316 | if (fh->closef == 0 || fh->f == NULL) { | 316 | if (fh->closef == 0 || fh->f == NULL) { |
| 317 | luaL_error(L, "%s: closed file", funcname); | 317 | luaL_error(L, "%s: closed file", funcname); |
