summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2023-04-11 10:14:45 -0400
committerPeter Zhu <peter@peterzhu.ca>2023-04-11 15:02:44 -0400
commit91dcce5ed1e44ca2e64936b66699fc8c1c092f5c (patch)
tree814dcd8ad03e890a1535e2a820a0f44664983516 /internal
parentce99e50ede4e4981d7b008bbe17f72fa351a5978 (diff)
downloadruby-91dcce5ed1e44ca2e64936b66699fc8c1c092f5c.tar.gz
Change max_iv_count to type attr_index_t
max_iv_count is calculated from next_iv_index of the shape, which is of type attr_index_t, so we can also make max_iv_count of type attr_index_t.
Diffstat (limited to 'internal')
-rw-r--r--internal/class.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/class.h b/internal/class.h
index 9e47a339c1..9f933c1fee 100644
--- a/internal/class.h
+++ b/internal/class.h
@@ -65,7 +65,7 @@ struct rb_classext_struct {
#if !SHAPE_IN_BASIC_FLAGS
shape_id_t shape_id;
#endif
- uint32_t max_iv_count;
+ attr_index_t max_iv_count;
unsigned char variation_count;
bool permanent_classpath;
VALUE classpath;