1 diff --git a/src/lfs.c b/src/lfs.c
2 index 352e17b..4143a47 100644
5 @@ -226,7 +226,7 @@ static FILE *check_file (lua_State *L, int idx, const char *funcname) {
9 -#elif LUA_VERSION_NUM >= 502 && LUA_VERSION_NUM <= 503
10 +#elif LUA_VERSION_NUM >= 502 && LUA_VERSION_NUM <= 504
11 luaL_Stream *fh = (luaL_Stream *)luaL_checkudata (L, idx, "FILE*");
12 if (fh->closef == 0 || fh->f == NULL) {
13 luaL_error (L, "%s: closed file", funcname);