2
0
Fork 0

Fix lua struct stat export

personal/stbuehler/wip
Stefan Bühler 2009-11-15 21:47:32 +01:00
parent 4e6e5e54c5
commit 6fcfd96b53
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ static int lua_stat_attr_read_is_file(struct stat *st, lua_State *L) {
}
static int lua_stat_attr_read_is_dir(struct stat *st, lua_State *L) {
lua_pushboolean(L, S_ISREG(st->st_mode));
lua_pushboolean(L, S_ISDIR(st->st_mode));
return 1;
}