Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tweak an op to work properly with VMArray-backed nqp::list.

  • Loading branch information...
commit f8f91b1bce55407937b5a2b35e7b3b263de2d167 1 parent c903f23
@arnsholt arnsholt authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/ops/nqp.ops
View
3  src/ops/nqp.ops
@@ -1856,7 +1856,8 @@ inline op stable_publish_vtable_handler_mapping(invar PMC, invar PMC) :base_core
}
if (idx >= 0) {
PMC *class_handle = VTABLE_get_pmc_keyed_int(interp, slot, 0);
- STRING *attr_name = VTABLE_get_string_keyed_int(interp, slot, 1);
+ PMC *attr_pmc = VTABLE_get_pmc_keyed_int(interp, slot, 1);
+ STRING *attr_name = VTABLE_get_string(interp, attr_pmc);
st->parrot_vtable_handler_mapping[idx].class_handle = class_handle;
st->parrot_vtable_handler_mapping[idx].attr_name = attr_name;
st->parrot_vtable_handler_mapping[idx].hint =
Please sign in to comment.
Something went wrong with that request. Please try again.