summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/file.c b/file.c
index 144f1f47a6..6080bbfd2a 100644
--- a/file.c
+++ b/file.c
@@ -5766,11 +5766,11 @@ static VALUE
rb_file_s_mkfifo(int argc, VALUE *argv)
{
VALUE path;
- int mode = 0666;
+ mode_t mode = 0666;
rb_check_arity(argc, 1, 2);
if (argc > 1) {
- mode = NUM2INT(argv[1]);
+ mode = NUM2MODET(argv[1]);
}
path = argv[0];
FilePathValue(path);