summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-06 00:45:02 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-06 00:45:02 +0000
commitbc5797d873c27631a4b5c7eb0f635e0e5c9e2057 (patch)
tree34007723de168375c50124b6b9c5c741bd0061d5 /dir.c
parenta6eded88af6390cccf009bc3da4eb44ab71a42fd (diff)
* dir.c (dir_tell): check if closed. [ruby-core:16223]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index b61e7c1..b6e1976 100644
--- a/dir.c
+++ b/dir.c
@@ -592,7 +592,7 @@ dir_tell(dir)
struct dir_data *dirp;
long pos;
- Data_Get_Struct(dir, struct dir_data, dirp);
+ GetDIR(dir, dirp);
pos = telldir(dirp->dir);
return rb_int2inum(pos);
#else