Skip to content

Commit

Permalink
fix: array and heap cells
Browse files Browse the repository at this point in the history
  • Loading branch information
arturo32 authored Dec 2, 2024
1 parent a69bf22 commit 0c26f9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions memoryCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand All @@ -92,7 +92,7 @@ export default {
return this.variable[2];
},
isArray() {
this.variable[2][2].constructor === Array;
this.variable[1][2].constructor === Array;
}
},
watch: {
Expand Down

0 comments on commit 0c26f9f

Please sign in to comment.