From 06bb0fdefbdd511e7ed9450d281d40bd97205c9a Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Fri, 2 Apr 2021 13:07:54 +0900 Subject: [PATCH] str.__mul__ should takeString, not copyString --- src/obj_str.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/obj_str.c b/src/obj_str.c index 346a783..8e85039 100644 --- a/src/obj_str.c +++ b/src/obj_str.c @@ -331,7 +331,7 @@ KRK_METHOD(str,__mul__,{ } *c = '\0'; - return OBJECT_VAL(krk_copyString(out, totalLength)); + return OBJECT_VAL(krk_takeString(out, totalLength)); }) #define unpackArray(counter, indexer) do { \