diff options
| author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-08 16:10:27 +0000 |
|---|---|---|
| committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-08 16:10:27 +0000 |
| commit | 857620d82dd6148d002b620c7c4a0c068771a48a (patch) | |
| tree | ca00dbfffdb10c45be9618b61ddc8d86753e58de | |
| parent | 39da1f68152faf491b32923c65410d942d5b45f8 (diff) | |
| download | ruby-857620d82dd6148d002b620c7c4a0c068771a48a.tar.gz ruby-857620d82dd6148d002b620c7c4a0c068771a48a.tar.xz ruby-857620d82dd6148d002b620c7c4a0c068771a48a.zip | |
* file.c (lchmod_internal): fix warning cast from pointer to integer of
different size.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | file.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Sat Feb 09 01:01:38 2008 NARUSE, Yui <naruse@ruby-lang.org> + + * file.c (lchmod_internal): fix warning cast from pointer to integer of + different size. + Sat Feb 9 00:44:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> * lib/irb.rb (IRB::Irb::eval_input): rescues Interrupt and other than @@ -1872,7 +1872,7 @@ rb_file_chmod(VALUE obj, VALUE vmode) static void lchmod_internal(const char *path, void *mode) { - if (lchmod(path, (int)mode) < 0) + if (lchmod(path, (int)(VALUE)mode) < 0) rb_sys_fail(path); } |
