summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-08 11:00:06 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-08 11:00:06 +0000
commit2391ee2c6130797d2885da0fb1180bfba737971a (patch)
tree2929c40032a94e193a98fff6d724970ba849b813 /thread.c
parente0932e3ad38a0740e65478bd85897db734980083 (diff)
* thread.c (rb_threadptr_pending_interrupt_check_mask):
use RARRAY_RAWPTR() instead of RARRAY_PTR() because there is no new reference. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/thread.c b/thread.c
index 599bf594c9..4b5dd7ed8a 100644
--- a/thread.c
+++ b/thread.c
@@ -1549,10 +1549,10 @@ rb_threadptr_pending_interrupt_check_mask(rb_thread_t *th, VALUE err)
{
VALUE mask;
long mask_stack_len = RARRAY_LEN(th->pending_interrupt_mask_stack);
- VALUE *mask_stack = RARRAY_PTR(th->pending_interrupt_mask_stack);
+ const VALUE *mask_stack = RARRAY_RAWPTR(th->pending_interrupt_mask_stack);
VALUE ancestors = rb_mod_ancestors(err); /* TODO: GC guard */
long ancestors_len = RARRAY_LEN(ancestors);
- VALUE *ancestors_ptr = RARRAY_PTR(ancestors);
+ const VALUE *ancestors_ptr = RARRAY_RAWPTR(ancestors);
int i, j;
for (i=0; i<mask_stack_len; i++) {