diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-07 19:04:39 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-07 19:04:39 +0000 |
commit | 6bca9dc37298c7e2a18ec16401a193e2e6c21dec (patch) | |
tree | 542373881ffeae82832e1e0549311ef8c7916cf7 /ext/thread | |
parent | 398c3cab6d15f13390ede357a9b054059ac156ae (diff) | |
download | ruby-6bca9dc37298c7e2a18ec16401a193e2e6c21dec.tar.gz |
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
Diffstat (limited to 'ext/thread')
-rw-r--r-- | ext/thread/thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |