diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-18 04:34:52 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-18 04:34:52 +0000 |
commit | 644f2013d637595d9592ad45714788abd8eb6e0e () | |
tree | fdcb8095ba8fceb13e5d06ed3c53c2be6e062e75 /vm_trace.c | |
parent | 5c334727f1b1ea4911f3817edc9e717bb48abe04 (diff) |
vm_trace.c (rb_postponed_job_flush): use rb_atomic_t for mask
ec->interrupt_mask will remain rb_atomic_t and is 32-bit on some 64-bit systems while "unsigned long" is 64-bits. So avoid mismatching lengths and stick to rb_atomic_t. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | vm_trace.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1665,8 +1665,8 @@ void rb_postponed_job_flush(rb_vm_t *vm) { rb_execution_context_t *ec = GET_EC(); - const unsigned long block_mask = POSTPONED_JOB_INTERRUPT_MASK|TRAP_INTERRUPT_MASK; - volatile unsigned long saved_mask = ec->interrupt_mask & block_mask; VALUE volatile saved_errno = ec->errinfo; ec->errinfo = Qnil; |