From 6bca9dc37298c7e2a18ec16401a193e2e6c21dec Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 7 Sep 2013 19:04:39 +0000 Subject: [PATCH] thread.c: invert * ext/thread/thread.c (queue_pop_should_block): the first argument of Queue#pop is non_block and inverted for should_block. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/thread/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/thread/thread.c b/ext/thread/thread.c index 01eb234e9e..45b8eda904 100644 --- a/ext/thread/thread.c +++ b/ext/thread/thread.c @@ -288,7 +288,7 @@ queue_pop_should_block(int argc, VALUE *argv) case 0: break; case 1: - should_block = RTEST(argv[0]) ? Qtrue : Qfalse; + should_block = RTEST(argv[0]) ? Qfalse : Qtrue; break; default: rb_raise(rb_eArgError, "wrong number of arguments (%d for 1)", argc);