Skip to content

Commit

Permalink
Fixed bug with output that caused duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
GINMEL committed Oct 25, 2023
1 parent 6273c0f commit 36d4c04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ unsigned long long Interpreter::POP(){
void Interpreter::execute(){
if(code.size() == 0) throw Exception::BadSyntaxException("Code not built");
this->ptr = this->entry;
this->output.clear();
this->output.str(std::string());;
int cnt, i, type, lineNum, memTemp1, memTemp2;
unsigned long long a, b, val;
while(true){
Expand Down

0 comments on commit 36d4c04

Please sign in to comment.