diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-10 13:21:58 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-10 13:21:58 +0000 |
commit | bb1a1aeab0f2a5fe437c89b841a887ba56653453 (patch) | |
tree | 16818aeb66a9f256eb8e3912c230ff99e0247318 /vm_insnhelper.c | |
parent | 5da9bd0ee5b9a4faf503942b803b8b54b70c98ee (diff) | |
download | ruby-bb1a1aeab0f2a5fe437c89b841a887ba56653453.tar.gz |
mjit.c: use boolean type for boolean variables
and functions to clarify the intention and make sure it's not used in a
surprising way (like using 2, 3, ... other than 0, 1 even while it seems
to be a boolean).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index cb3236b1bc..230a3291ea 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -1643,7 +1643,7 @@ vm_call_iseq_setup_normal_0start(rb_execution_context_t *ec, rb_control_frame_t return vm_call_iseq_setup_normal(ec, cfp, calling, cc->me, 0, param, local); } -MJIT_STATIC int +MJIT_STATIC bool rb_simple_iseq_p(const rb_iseq_t *iseq) { return iseq->body->param.flags.has_opt == FALSE && |