diff options
author | Katherine Oelsner <octokatherine@github.com> | 2023-10-18 14:05:48 -0700 |
---|---|---|
committer | John Hawthorn <john@hawthorn.email> | 2023-10-18 15:01:13 -0700 |
commit | a7032b80af18b7f2eb3552c5231ca36a8c69f1be (patch) | |
tree | 2a4fe0a060e061570061054c79b136373fb36d9e /shape.h | |
parent | de0764501987aff0f9b19594a2cbd5583ccce660 (diff) |
Revert "shape.h: Make attr_index_t uint8_t"
This reverts commit e3afc212ec059525fe4e5387b2a3be920ffe0f0e.
Diffstat (limited to 'shape.h')
-rw-r--r-- | shape.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -6,11 +6,12 @@ #if (SIZEOF_UINT64_T <= SIZEOF_VALUE) #define SIZEOF_SHAPE_T 4 #define SHAPE_IN_BASIC_FLAGS 1 +typedef uint32_t attr_index_t; #else #define SIZEOF_SHAPE_T 2 #define SHAPE_IN_BASIC_FLAGS 0 +typedef uint16_t attr_index_t; #endif -typedef uint8_t attr_index_t; #define MAX_IVARS (attr_index_t)(-1) @@ -43,7 +44,7 @@ struct rb_shape { struct rb_id_table * edges; // id_table from ID (ivar) to next shape ID edge_name; // ID (ivar) for transition from parent to rb_shape attr_index_t next_iv_index; - attr_index_t capacity; // Total capacity of the object with this shape + uint32_t capacity; // Total capacity of the object with this shape uint8_t type; uint8_t size_pool_index; shape_id_t parent_id; |