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 | 998113d62f43a7052028105a1bc301d0af513d87 (patch) | |
tree | ca00dbfffdb10c45be9618b61ddc8d86753e58de /file.c | |
parent | 8bc75b5bb09ebaebaf8e7178e45c7bdaa17f7ad8 (diff) | |
download | ruby-998113d62f43a7052028105a1bc301d0af513d87.tar.gz |
* 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
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |