mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
use int8_t for tt
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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;\
|
||||
|
||||
Reference in New Issue
Block a user