diff options
Diffstat (limited to 'src')
| -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); |
