summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-21 17:27:56 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-21 17:27:56 +0000
commitb524523217b51e864c010646ffd5cbc4154d2fd3 (patch)
tree70844b11aaa2e3c6d67f9628e4b011a322900039 /file.c
parent1d78315845bcc7800315acbeb6b0a804e745a257 (diff)
Merge from ruby_1_8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@16511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index 71d5692c66..ba00e9d34a 100644
--- a/file.c
+++ b/file.c
@@ -1785,7 +1785,7 @@ lchmod_internal(path, mode)
const char *path;
void *mode;
{
- if (lchmod(path, (int)mode) < 0)
+ if (lchmod(path, (int)(VALUE)mode) < 0)
rb_sys_fail(path);
}