Skip to content

Commit 0ecb689

Browse files
committed
Correct comments for packed shape and index [ci skip]
1 parent 553753c commit 0ecb689

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vm_callinfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ struct rb_callcache {
289289

290290
union {
291291
struct {
292-
uint64_t value; // Shape ID in upper bits, index in lower bits
292+
uint64_t value; // Shape ID in former half, index in latter half
293293
} attr;
294294
const enum method_missing_reason method_missing_reason; /* used by method_missing */
295295
VALUE v;

vm_core.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ struct iseq_inline_constant_cache {
288288
};
289289

290290
struct iseq_inline_iv_cache_entry {
291-
uint64_t value; // attr_index in lower bits, dest_shape_id in upper bits
291+
uint64_t value; // dest_shape_id in former half, attr_index in latter half
292292
ID iv_set_name;
293293
};
294294

0 commit comments

Comments
 (0)