Skip to content

Commit afcf7fc

Browse files
committed
object.h: make GC color uint8_t that fits in 3 bits
1 parent 8873229 commit afcf7fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/mruby/object.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
struct RClass *c; \
1212
struct RBasic *gcnext; \
1313
enum mrb_vtype tt:8; \
14-
uint32_t color:3; \
14+
uint8_t color:3; \
1515
uint32_t flags:21
1616

1717
#define MRB_FLAG_TEST(obj, flag) ((obj)->flags & (flag))

0 commit comments

Comments
 (0)