1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2009-03-11 16:18:10 +00:00
parent 1c2cc09063
commit fd0a91b5ab
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Thu Mar 12 01:18:09 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* dir.c (dir_seek): use long for seekdir().
Thu Mar 12 01:08:27 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* tool/ytab.sed: replaces backslashes with slash for nmake.

2
dir.c
View file

@ -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