From 6b818dd9616ce6f0c849ab32c5869cc55b624b0a Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 26 Oct 2017 07:23:23 +0000 Subject: common conversion functions * array.c (rb_to_array_type): make public to share common code internally. * hash.c (rb_to_hash_type): make public to share common code internally. * symbol.c (rb_to_symbol_type): make public to share common code internally. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index baabf405f4..1815d9971b 100644 --- a/thread.c +++ b/thread.c @@ -1867,7 +1867,7 @@ rb_thread_s_handle_interrupt(VALUE self, VALUE mask_arg) } mask = 0; - mask_arg = rb_convert_type_with_id(mask_arg, T_HASH, "Hash", idTo_hash); + mask_arg = rb_to_hash_type(mask_arg); rb_hash_foreach(mask_arg, handle_interrupt_arg_check_i, (VALUE)&mask); if (!mask) { return rb_yield(Qnil); -- cgit v1.2.3