aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog12
-rw-r--r--dir.c5
2 files changed, 15 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 14edbfee1d..892fbea6a8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Nov 22 00:13:35 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * dir.c (dir_seek): should retrieve dir_data after NUM2INT().
+ [ruby-dev:24941]
+
Sat Nov 20 23:57:33 2004 Dave Thomas <dave@pragprog.com>
* lib/rdoc/README (et al): Add a new directive, :section:, and
@@ -138,6 +143,13 @@ Thu Nov 18 20:47:24 2004 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.[ch] (rb_w32_isatty): new function to replace MSVCRT's
isatty because it never sets errno.
+Thu Nov 18 18:41:08 2004 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/ruby/test_stringchar.rb (test_bang): added.
+
+ * string.c (rb_str_upcase_bang, rb_str_capitalize_bang)
+ (rb_str_swapcase_bang): missing rb_str_modify().
+
Thu Nov 18 17:05:01 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (f_rest_arg): store rest args into invisible local variabe
diff --git a/dir.c b/dir.c
index 5e8b89c7f1..613e160985 100644
--- a/dir.c
+++ b/dir.c
@@ -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();