diff --git a/src/lfs.c b/src/lfs.c index b51470c..07831aa 100644 --- a/src/lfs.c +++ b/src/lfs.c @@ -311,7 +311,7 @@ static FILE *check_file(lua_State * L, int idx, const char *funcname) return 0; } else return *fh; -#elif LUA_VERSION_NUM >= 502 && LUA_VERSION_NUM <= 504 +#elif LUA_VERSION_NUM >= 502 && LUA_VERSION_NUM <= 505 luaL_Stream *fh = (luaL_Stream *) luaL_checkudata(L, idx, "FILE*"); if (fh->closef == 0 || fh->f == NULL) { luaL_error(L, "%s: closed file", funcname);