From 811d072dcb7ef63a8953c17641801f7cce787cc7 Mon Sep 17 00:00:00 2001 From: ktsj Date: Sun, 21 Oct 2012 10:14:29 +0000 Subject: * vm_trace.c (rb_threadptr_exec_event_hooks, rb_suppress_tracing): constified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_trace.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vm_trace.c') diff --git a/vm_trace.c b/vm_trace.c index 99a1d32860..37610c2bfc 100644 --- a/vm_trace.c +++ b/vm_trace.c @@ -310,7 +310,7 @@ rb_threadptr_exec_event_hooks(rb_thread_t *th, rb_event_flag_t event, VALUE self { if (th->trace_running == 0 && self != rb_mRubyVMFrozenCore /* skip special methods. TODO: remove it. */) { - int vm_tracing = th->vm->trace_running; + const int vm_tracing = th->vm->trace_running; int state = 0; int outer_state = th->state; th->state = 0; @@ -363,8 +363,8 @@ rb_suppress_tracing(VALUE (*func)(VALUE), VALUE arg) VALUE result = Qnil; rb_thread_t *th = GET_THREAD(); int state; - int vm_tracing = th->vm->trace_running; - int tracing = th->trace_running; + const int vm_tracing = th->vm->trace_running; + const int tracing = th->trace_running; th->vm->trace_running = 1; th->trace_running = 1; -- cgit v1.2.3