diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-21 15:33:56 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-21 15:33:56 +0000 |
| commit | 243096fc0687d329e7a32299d7fa8976488cc98c (patch) | |
| tree | e9e2c2e00555ec4aaff643812c964c7141045396 /dir.c | |
| parent | 265d5fc8bebd83b2491fd23769c76b8ae6293fcb (diff) | |
| download | ruby-243096fc0687d329e7a32299d7fa8976488cc98c.tar.gz ruby-243096fc0687d329e7a32299d7fa8976488cc98c.tar.xz ruby-243096fc0687d329e7a32299d7fa8976488cc98c.zip | |
* dir.c (dir_seek): should retrieve dir_data after NUM2INT().
[ruby-dev:24941]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
| -rw-r--r-- | dir.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -600,10 +600,11 @@ dir_seek(dir, pos) VALUE dir, pos; { struct dir_data *dirp; + off_t p = NUM2LONG(pos); -#ifdef HAVE_SEEKDIR GetDIR(dir, dirp); - seekdir(dirp->dir, NUM2INT(pos)); +#ifdef HAVE_SEEKDIR + seekdir(dirp->dir, p); return dir; #else rb_notimplement(); |
