diff options
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1695,7 +1695,7 @@ chmod_internal(path, mode) const char *path; void *mode; { - if (chmod(path, (int)mode) < 0) + if (chmod(path, *(int *)mode) < 0) rb_sys_fail(path); } @@ -1726,7 +1726,7 @@ rb_file_s_chmod(argc, argv) rb_scan_args(argc, argv, "1*", &vmode, &rest); mode = NUM2INT(vmode); - n = apply2files(chmod_internal, rest, (void *)(long)mode); + n = apply2files(chmod_internal, rest, &mode); return LONG2FIX(n); } |