From 0c26f9fdaca21178af20b29df272458750a69720 Mon Sep 17 00:00:00 2001 From: Arturo Fonseca <49870466+arturo32@users.noreply.github.com> Date: Mon, 2 Dec 2024 00:34:00 -0300 Subject: [PATCH] fix: array and heap cells --- memoryCell.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/memoryCell.js b/memoryCell.js index eb4b4b0..82ad2bc 100644 --- a/memoryCell.js +++ b/memoryCell.js @@ -71,7 +71,7 @@ export default { return this.variable[1][2][2]; } else { if(this.variable[1][0] === "C_ARRAY") { - return this.variable[1][2] + '[]'; + return this.variable[1][2][2] + '[]'; } else { return this.variable[1][2]; } @@ -92,7 +92,7 @@ export default { return this.variable[2]; }, isArray() { - this.variable[2][2].constructor === Array; + this.variable[1][2].constructor === Array; } }, watch: {