From ac24e257abc6d315b84072171a792b20d8b9d7a6 Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 26 Feb 2013 00:57:30 +0000 Subject: * st.c (st_add_direct): int is not always same with st_index_t. some version of clang reports error. * thread.c (vm_living_thread_num): ditto. reported by d6rkaiz (Isao Sugimoto) at [ruby-dev:47096] [Backport #7946] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@39503 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 c7da34b58d..5b8bc5fefb 100644 --- a/thread.c +++ b/thread.c @@ -2161,7 +2161,7 @@ thread_keys_i(ID key, VALUE value, VALUE ary) static int vm_living_thread_num(rb_vm_t *vm) { - return vm->living_threads->num_entries; + return (int)vm->living_threads->num_entries; } int -- cgit v1.2.3