1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2013-09-07 19:04:39 +00:00
parent 398c3cab6d
commit 6bca9dc372

View file

@ -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);