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

* thread.c (thread_start_func_2): use PRIxVALUE to format a VALUE.

* thread.c (ruby_native_thread_p): removed unused declaration.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-06-16 14:56:14 +00:00
parent 51fbc0699c
commit 1723931102

View file

@ -376,7 +376,8 @@ thread_start_func_2(rb_thread_t *th, VALUE *stack_start, VALUE *register_stack_s
/* locking_mutex must be Qfalse */
if (th->locking_mutex != Qfalse) {
rb_bug("thread_start_func_2: locking_mutex must be NULL (%p:%ld)", th, th->locking_mutex);
rb_bug("thread_start_func_2: locking_mutex must not be set (%p:%"PRIxVALUE")",
th, th->locking_mutex);
}
/* unlock all locking mutexes */
@ -3401,7 +3402,6 @@ Init_Thread(void)
int
ruby_native_thread_p(void)
{
rb_thread_t *rb_thread_check_ptr(rb_thread_t *ptr);
rb_thread_t *th = ruby_thread_from_native();
return th ? Qtrue : Qfalse;