From f07281a026d20f33ffca39ce3877b385b314eb64 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Sat, 3 Jun 2023 16:55:57 +0900 Subject: [PATCH] Revert "object.h: make GC color uint8_t that fits in 3 bits" The change made the size of mruby data types bigger on Win. This reverts commit afcf7fc86d11c82932e397f0ed49cba0f94ea9c4. --- include/mruby/object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mruby/object.h b/include/mruby/object.h index 232252f2a..a6ecab1eb 100644 --- a/include/mruby/object.h +++ b/include/mruby/object.h @@ -11,7 +11,7 @@ struct RClass *c; \ struct RBasic *gcnext; \ enum mrb_vtype tt:8; \ - uint8_t color:3; \ + uint32_t color:3; \ uint32_t flags:21 #define MRB_FLAG_TEST(obj, flag) ((obj)->flags & (flag))