str.__mul__ should takeString, not copyString

This commit is contained in:
K. Lange 2021-04-02 13:07:54 +09:00
parent dc361af48b
commit 06bb0fdefb

View File

@ -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 { \