Navigation Menu

Skip to content

Commit

Permalink
Fix build on C++. Patch courtesy of NotFound++.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed May 25, 2009
1 parent 37e6703 commit 2376c44
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pmc/p6opaque.pmc
Expand Up @@ -49,10 +49,10 @@ more.)

/* Copy over metadata. */
for (i = 0; i < num_attrs; i++) {
PMC * const original = VTABLE_get_pmc_keyed_int(INTERP, my_guts->attrib_store, i);
PMC * const new = VTABLE_get_pmc_keyed_int(INTERP, clone_guts->attrib_store, i);
if (original->pmc_ext && new->pmc_ext)
PMC_metadata(new) = PMC_metadata(original);
PMC * const original_data = VTABLE_get_pmc_keyed_int(INTERP, my_guts->attrib_store, i);
PMC * const new_data = VTABLE_get_pmc_keyed_int(INTERP, clone_guts->attrib_store, i);
if (original_data->pmc_ext && new_data->pmc_ext)
PMC_metadata(new_data) = PMC_metadata(original_data);
}

return clone;
Expand Down

0 comments on commit 2376c44

Please sign in to comment.