Fix bus when converting unsigned to signed numbers

This commit is contained in:
BorysLevytskyi
2023-05-10 22:00:40 +02:00
parent 214f85c52d
commit 5512dacb0a
5 changed files with 57 additions and 20 deletions

View File

@@ -58,9 +58,7 @@ function applyOperator(op1 : Operand, operator: string, op2 : Operand) : Operand
equalizeSize(op1, op2);
}
console.log(op1.value, operator, op2.value);
const result = calc.operation(op1.value, operator, op2.value);
console.log('=', result);
return new Operand(result, op2.base);
}