From 6f8bfed18e7c1928f1b0700ab6a81c2f2e20e77c Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Sat, 4 Jan 2025 18:00:01 +0900 Subject: [PATCH] object.h: change gccolor type to unsigned int I was uncomfortable with the combination of an integer with a size specification (uint32_t) and a bit field. --- 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 f54729f01..5a8e207f6 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; \ - uint32_t gccolor:3; \ + unsigned int gccolor:3; \ uint32_t flags:21 #define MRB_FLAG_TEST(obj, flag) ((obj)->flags & (flag))