Removing bitfields usage from 'Obj' struct.
This commit is contained in:
parent
699b453805
commit
6f9b10cde8
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user