1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* file.c (lchmod_internal): fix warning cast from pointer to integer of

different size.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2008-02-08 16:10:27 +00:00
parent 8bc75b5bb0
commit 998113d62f
2 changed files with 6 additions and 1 deletions

View file

@ -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

2
file.c
View file

@ -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);
}