From 56bf732aaf5a109964b0297b2158372de2e3ae97 Mon Sep 17 00:00:00 2001 From: k0kubun Date: Thu, 10 Jan 2019 14:31:18 +0000 Subject: 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). This is a retry of r66775. It included some typos... git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/ruby_vm/views/mjit_compile.inc.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tool/ruby_vm') diff --git a/tool/ruby_vm/views/mjit_compile.inc.erb b/tool/ruby_vm/views/mjit_compile.inc.erb index 05c32deab2..77dd7f442b 100644 --- a/tool/ruby_vm/views/mjit_compile.inc.erb +++ b/tool/ruby_vm/views/mjit_compile.inc.erb @@ -58,7 +58,7 @@ switch (insn) { if (b->stack_size != 1) { if (mjit_opts.warnings || mjit_opts.verbose) fprintf(stderr, "MJIT warning: Unexpected JIT stack_size on leave: %d\n", b->stack_size); - status->success = FALSE; + status->success = false; } % end % @@ -72,6 +72,6 @@ switch (insn) { default: if (mjit_opts.warnings || mjit_opts.verbose) fprintf(stderr, "MJIT warning: Skipped to compile unsupported instruction: %s\n", insn_name(insn)); - status->success = FALSE; + status->success = false; break; } -- cgit v1.2.3