diff --git a/ChangeLog b/ChangeLog index 8223b7f517..4b9a7be8ff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Mar 12 01:18:09 2009 Nobuyoshi Nakada + + * dir.c (dir_seek): use long for seekdir(). + Thu Mar 12 01:08:27 2009 Nobuyoshi Nakada * tool/ytab.sed: replaces backslashes with slash for nmake. diff --git a/dir.c b/dir.c index 55c675f216..9b502ef42f 100644 --- a/dir.c +++ b/dir.c @@ -580,7 +580,7 @@ static VALUE dir_seek(VALUE dir, VALUE pos) { struct dir_data *dirp; - off_t p = NUM2OFFT(pos); + long p = NUM2LONG(pos); GetDIR(dir, dirp); #ifdef HAVE_SEEKDIR