mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
object.h: make GC color uint8_t that fits in 3 bits
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
struct RClass *c; \
|
||||
struct RBasic *gcnext; \
|
||||
enum mrb_vtype tt:8; \
|
||||
uint32_t color:3; \
|
||||
uint8_t color:3; \
|
||||
uint32_t flags:21
|
||||
|
||||
#define MRB_FLAG_TEST(obj, flag) ((obj)->flags & (flag))
|
||||
|
||||
Reference in New Issue
Block a user