ruby/ruby-1.8.4-warnings.patch

14 lines
279 B
Diff
Raw Normal View History

Index: file.c
===================================================================
--- file.c.orig
+++ file.c
@@ -1692,7 +1692,7 @@
const char *path;
void *mode;
{
- if (chmod(path, (int)mode) < 0)
+ if (chmod(path, (intptr_t)mode) < 0)
rb_sys_fail(path);
}