diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-22 15:26:02 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-22 15:26:02 +0000 |
| commit | 810d3245933308dfc0a2c6ba34733f8206873914 (patch) | |
| tree | b5822a36113ad505f029399c6aca5708fbb45fd6 /dir.c | |
| parent | 0d96951da43aa6407661ae5de362c5d2309c525c (diff) | |
| download | ruby-810d3245933308dfc0a2c6ba34733f8206873914.tar.gz ruby-810d3245933308dfc0a2c6ba34733f8206873914.tar.xz ruby-810d3245933308dfc0a2c6ba34733f8206873914.zip | |
* file.c (rb_file_chown): integer conversion should be prior to
GetOpenFile(). [ruby-dev:24947]
* file.c (rb_file_truncate): ditto.
* file.c (rb_file_s_truncate): ditto.
* dir.c (dir_seek): use NUM2OFFT().
* misc/ruby-mode.el (ruby-non-block-do-re): [ruby-core:03719]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
| -rw-r--r-- | dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -600,7 +600,7 @@ dir_seek(dir, pos) VALUE dir, pos; { struct dir_data *dirp; - off_t p = NUM2LONG(pos); + off_t p = NUM2OFFT(pos); GetDIR(dir, dirp); #ifdef HAVE_SEEKDIR |
