From 6f9b10cde8193058b9d1d949bb9f5994fa8f3136 Mon Sep 17 00:00:00 2001 From: Marco Lizza Date: Tue, 27 Jan 2015 14:09:32 +0100 Subject: [PATCH] Removing bitfields usage from 'Obj' struct. --- src/wren_value.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/wren_value.h b/src/wren_value.h index 653581ba..a8c74cfa 100644 --- a/src/wren_value.h +++ b/src/wren_value.h @@ -73,10 +73,8 @@ typedef struct sObjClass ObjClass; // Base struct for all heap-allocated objects. typedef struct sObj { - unsigned int type : 4; // ObjType. - // TODO: We could store this bit off to the side, or in the low bit of - // classObj to shrink objects a bit. Worth doing? - unsigned int flags : 1; // ObjFlags. + ObjType type; + ObjFlags flags; // The object's class. ObjClass* classObj;