Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
gotta subtract the header's size from the offset
  • Loading branch information
timo committed Jul 11, 2014
1 parent e9c4921 commit 3c02865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/moar/ops/container.c
Expand Up @@ -165,7 +165,7 @@ static void rakudo_scalar_spesh(MVMThreadContext *tc, MVMSTable *st, MVMSpeshGra
switch (ins->info->opcode) {
case MVM_OP_decont: {
ins->info = MVM_op_get_op(MVM_OP_sp_p6oget_o);
ins->operands[2].lit_i16 = offsetof( Rakudo_Scalar, value );
ins->operands[2].lit_i16 = offsetof( Rakudo_Scalar, value ) - offsetof( MVMObjectStooge, data );
break;
}
default: break;
Expand Down

0 comments on commit 3c02865

Please sign in to comment.