From 7f40fc852e59f867cd89046977afd54306978bd1 Mon Sep 17 00:00:00 2001 From: krlosMata Date: Thu, 9 Nov 2023 10:04:35 +0100 Subject: [PATCH] all 'num' to strings --- src/compiler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler.js b/src/compiler.js index af274da..a5b33ff 100644 --- a/src/compiler.js +++ b/src/compiler.js @@ -279,9 +279,9 @@ module.exports = async function compile(fileName, ctx, config = {}) { error(ctx.out[i].line, `Not found reference ${cmd.module}.${name}`); } cmd.op = 'number' - cmd.num = ctx.vars[name].offset; + cmd.num = ctx.vars[name].offset.toString(); if (cmd.arrayOffset) { - cmd.num += Number(cmd.arrayOffset.num ?? 0); + cmd.num += Number(cmd.arrayOffset.num ?? 0).toString(); } cmd.offsetLabel = name; delete cmd.offset;