Make rb_shape.capacity an attr_index_t

This commit is contained in:
Jean Boussier 2025-05-05 13:54:34 +02:00
parent bbea71fafb
commit a3af4e905f
Notes: git 2025-05-05 12:45:05 +00:00
3 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ struct rb_shape {
struct rb_id_table *edges; // id_table from ID (ivar) to next 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 ID edge_name; // ID (ivar) for transition from parent to rb_shape
attr_index_t next_iv_index; attr_index_t next_iv_index;
uint32_t capacity; // Total capacity of the object with this shape attr_index_t capacity; // Total capacity of the object with this shape
uint8_t type; uint8_t type;
uint8_t heap_index; uint8_t heap_index;
shape_id_t parent_id; shape_id_t parent_id;

View File

@ -649,7 +649,7 @@ pub struct rb_shape {
pub edges: *mut rb_id_table, pub edges: *mut rb_id_table,
pub edge_name: ID, pub edge_name: ID,
pub next_iv_index: attr_index_t, pub next_iv_index: attr_index_t,
pub capacity: u32, pub capacity: attr_index_t,
pub type_: u8, pub type_: u8,
pub heap_index: u8, pub heap_index: u8,
pub parent_id: shape_id_t, pub parent_id: shape_id_t,

View File

@ -406,7 +406,7 @@ pub struct rb_shape {
pub edges: *mut rb_id_table, pub edges: *mut rb_id_table,
pub edge_name: ID, pub edge_name: ID,
pub next_iv_index: attr_index_t, pub next_iv_index: attr_index_t,
pub capacity: u32, pub capacity: attr_index_t,
pub type_: u8, pub type_: u8,
pub heap_index: u8, pub heap_index: u8,
pub parent_id: shape_id_t, pub parent_id: shape_id_t,