From c0b71ed25495ffc36bc4c4ee663920c045619723 Mon Sep 17 00:00:00 2001 From: Matt Rajca Date: Thu, 23 Dec 2010 15:54:01 -0800 Subject: [PATCH] Use Parrot_pmc_box_string to box strings Signed-off-by: Christoph Otto --- src/embed/pmc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/embed/pmc.c b/src/embed/pmc.c index 4a10f2e51a..28897058a7 100644 --- a/src/embed/pmc.c +++ b/src/embed/pmc.c @@ -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) }