diff options
-rw-r--r-- | ext/posix_mq/posix_mq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/posix_mq/posix_mq.c b/ext/posix_mq/posix_mq.c index ca0cab8..3972620 100644 --- a/ext/posix_mq/posix_mq.c +++ b/ext/posix_mq/posix_mq.c @@ -331,7 +331,7 @@ static VALUE init(int argc, VALUE *argv, VALUE self) switch (TYPE(mode)) { case T_FIXNUM: x.argc = 3; - x.mode = NUM2INT(mode); + x.mode = NUM2UINT(mode); break; case T_NIL: if (x.oflags & O_CREAT) { |