Skip to content

Commit

Permalink
Use Parrot_pmc_box_string to box strings
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Otto <christoph_github@mksig.org>
  • Loading branch information
mattrajca authored and cotto committed Dec 24, 2010
1 parent 8138ebd commit c0b71ed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/embed/pmc.c
Expand Up @@ -426,8 +426,7 @@ Parrot_api_pmc_box_string(ARGIN(Parrot_PMC interp_pmc), ARGIN(Parrot_String str)
{
ASSERT_ARGS(Parrot_api_pmc_box_string)
EMBED_API_CALLIN(interp_pmc, interp)
*str_pmc = Parrot_pmc_new(interp, enum_class_String);
VTABLE_set_string_native(interp, *str_pmc, str);
*str_pmc = Parrot_pmc_box_string(interp, str);
EMBED_API_CALLOUT(interp_pmc, interp)
}

Expand Down

0 comments on commit c0b71ed

Please sign in to comment.