mirror of
https://github.com/BorysLevytskyi/BitwiseCmd.git
synced 2026-01-26 05:34:13 +01:00
Fix bus when converting unsigned to signed numbers
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user