From fd0a91b5ababba864749c599cb677198a2f52983 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 11 Mar 2009 16:18:10 +0000 Subject: [PATCH] * dir.c (dir_seek): use long for seekdir(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ dir.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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