use int8_t for tt

This commit is contained in:
Yukihiro Matsumoto
2012-05-05 07:59:15 +09:00
parent 53d8339a71
commit c9a51c43bc
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ typedef struct mrb_value {
mrb_int i;
mrb_sym sym;
} value;
enum mrb_vtype tt;
int8_t tt;
} mrb_value;
#define mrb_type(o) (o).tt
+2 -2
View File
@@ -7,8 +7,8 @@
#ifndef MRUBY_OBJECT_H
#define MRUBY_OBJECT_H
#define MRUBY_OBJECT_HEADER \
enum mrb_vtype tt:8;\
#define MRUBY_OBJECT_HEADER \
int8_t tt;\
int color:3;\
unsigned int flags:21;\
struct RClass *c;\