mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #1674 from cremno/mrb_bool-FALSE-TRUE
use mrb_bool, FALSE and TRUE more
This commit is contained in:
+4
-4
@@ -981,7 +981,7 @@ gen_send_intern(codegen_scope *s)
|
||||
push();
|
||||
}
|
||||
static void
|
||||
gen_literal_array(codegen_scope *s, node *tree, int sym, int val)
|
||||
gen_literal_array(codegen_scope *s, node *tree, mrb_bool sym, int val)
|
||||
{
|
||||
if (val) {
|
||||
int i = 0, j = 0;
|
||||
@@ -1069,7 +1069,7 @@ readint_float(codegen_scope *s, const char *p, int base)
|
||||
}
|
||||
|
||||
static mrb_int
|
||||
readint_mrb_int(codegen_scope *s, const char *p, int base, int neg, int *overflow)
|
||||
readint_mrb_int(codegen_scope *s, const char *p, int base, mrb_bool neg, mrb_bool *overflow)
|
||||
{
|
||||
const char *e = p + strlen(p);
|
||||
mrb_int result = 0;
|
||||
@@ -1926,7 +1926,7 @@ codegen(codegen_scope *s, node *tree, int val)
|
||||
int base = (intptr_t)tree->cdr->car;
|
||||
mrb_int i;
|
||||
mrb_code co;
|
||||
int overflow;
|
||||
mrb_bool overflow;
|
||||
|
||||
i = readint_mrb_int(s, p, base, FALSE, &overflow);
|
||||
if (overflow) {
|
||||
@@ -1982,7 +1982,7 @@ codegen(codegen_scope *s, node *tree, int val)
|
||||
int base = (intptr_t)tree->cdr->car;
|
||||
mrb_int i;
|
||||
mrb_code co;
|
||||
int overflow;
|
||||
mrb_bool overflow;
|
||||
|
||||
i = readint_mrb_int(s, p, base, TRUE, &overflow);
|
||||
if (overflow) {
|
||||
|
||||
Reference in New Issue
Block a user