From d03c76ae11ca6294e05262df747e4d43822ada73 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 8 Jan 2010 11:25:06 -0800 Subject: mode_t is usually unsigned Most used open modes are well under INT_MAX, however --- ext/posix_mq/posix_mq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/posix_mq/posix_mq.c') 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) { -- cgit v1.2.3-24-ge0c7