Correct comments for packed shape and index [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2025-06-04 11:38:45 +09:00
parent 553753cd3e
commit 0ecb689617
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465
2 changed files with 2 additions and 2 deletions

View File

@ -289,7 +289,7 @@ struct rb_callcache {
union {
struct {
uint64_t value; // Shape ID in upper bits, index in lower bits
uint64_t value; // Shape ID in former half, index in latter half
} attr;
const enum method_missing_reason method_missing_reason; /* used by method_missing */
VALUE v;

View File

@ -288,7 +288,7 @@ struct iseq_inline_constant_cache {
};
struct iseq_inline_iv_cache_entry {
uint64_t value; // attr_index in lower bits, dest_shape_id in upper bits
uint64_t value; // dest_shape_id in former half, attr_index in latter half
ID iv_set_name;
};