From feebd6e6a8f61d539362455c9bc9bd245e926058 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Sun, 10 Jul 2022 19:16:01 +0900 Subject: [PATCH] Emit emit string not MAKE_STRING 0 --- src/compiler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler.c b/src/compiler.c index 8f7cb39..3a9293e 100644 --- a/src/compiler.c +++ b/src/compiler.c @@ -2802,7 +2802,7 @@ _nextStr: emitConstant(OBJECT_VAL(bytes)); return; } - if (stringLength) { + if (stringLength || !formatElements) { emitConstant(OBJECT_VAL(krk_copyString(stringBytes,stringLength))); formatElements++; }