summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
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 4a41e0b444..12dc3ebba8 100644
--- a/file.c
+++ b/file.c
@@ -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);
}