use uint8_t for mrb_bool instead of unsigned int; close #1222

This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-04-29 11:46:16 +09:00
parent 8890a992a6
commit ee14d37da4
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -40,9 +40,9 @@ struct RProc {
#define MRB_ASPEC_BLOCK(a) ((a) & 1)
#define MRB_PROC_CFUNC 128
#define MRB_PROC_CFUNC_P(p) ((p)->flags & MRB_PROC_CFUNC)
#define MRB_PROC_CFUNC_P(p) (((p)->flags & MRB_PROC_CFUNC) != 0)
#define MRB_PROC_STRICT 256
#define MRB_PROC_STRICT_P(p) ((p)->flags & MRB_PROC_STRICT)
#define MRB_PROC_STRICT_P(p) (((p)->flags & MRB_PROC_STRICT) != 0)
#define mrb_proc_ptr(v) ((struct RProc*)((v).value.p))
+1 -1
View File
@@ -7,7 +7,7 @@
#ifndef MRUBY_VALUE_H
#define MRUBY_VALUE_H
typedef unsigned int mrb_bool;
typedef uint8_t mrb_bool;
#ifndef MRB_NAN_BOXING