summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-29 18:14:22 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-29 18:14:22 +0000
commitf0371138ee1b81ac8ac2af211f5f0b0427870eee (patch)
tree717af28ce4c164a4d77b449d6eac8906d8b50b03
parent6189cefb408fd248ae18478de79b285faf89bcb7 (diff)
* file.c (rb_file_s_chmod): get rid of gcc-3 -O3 warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog2
-rw-r--r--file.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a431f525e0..64d75e6c26 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -11,6 +11,8 @@ Sun Dec 29 23:45:53 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
* range.c (range_each_func): ditto.
+ * file.c (rb_file_s_chmod): ditto.
+
Sun Dec 29 15:30:37 2002 Minero Aoki <aamine@loveruby.net>
* lib/fileutils.rb (fu_parseargs): should not inherit ftools.rb's
diff --git a/file.c b/file.c
index 5b2d62757d..8cc3696186 100644
--- a/file.c
+++ b/file.c
@@ -990,7 +990,7 @@ rb_file_s_chmod(argc, argv)
rb_scan_args(argc, argv, "1*", &vmode, &rest);
mode = NUM2INT(vmode);
- n = apply2files(chmod_internal, rest, mode);
+ n = apply2files(chmod_internal, rest, (void *)mode);
return LONG2FIX(n);
}