diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-05-05 07:59:15 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-05-05 07:59:15 +0900 |
| commit | c9a51c43bc32cdd684a0e1b64e6a8bc8dba5d70e (patch) | |
| tree | cbe85ac0c0732bd503664c8415098e41b31cd809 /include | |
| parent | 53d8339a716a5e561e4fe06ee68fffc8c22d991b (diff) | |
| download | mruby-c9a51c43bc32cdd684a0e1b64e6a8bc8dba5d70e.tar.gz mruby-c9a51c43bc32cdd684a0e1b64e6a8bc8dba5d70e.zip | |
use int8_t for tt
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby.h | 2 | ||||
| -rw-r--r-- | include/mruby/object.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/mruby.h b/include/mruby.h index b3d1d5fa9..b81a7aa5f 100644 --- a/include/mruby.h +++ b/include/mruby.h @@ -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 diff --git a/include/mruby/object.h b/include/mruby/object.h index a4d2d2dac..b5a4ca6d8 100644 --- a/include/mruby/object.h +++ b/include/mruby/object.h @@ -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;\ |
