Skip to content

Commit

Permalink
Fixed Clear operation
Browse files Browse the repository at this point in the history
The Operation also needs to be reset so it doesn't depend on the previously
set operation. This is important because some operations can have problems
with an operand being 0.
  • Loading branch information
M4444 committed Jun 1, 2018
1 parent b04beec commit 72c2b47
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
Binary file modified dist/C41C.jar
Binary file not shown.
1 change: 1 addition & 0 deletions src/c41c/Window.java
Original file line number Diff line number Diff line change
Expand Up @@ -1591,6 +1591,7 @@ private void BUTTON_MRActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIR
private void BUTTON_ClearActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BUTTON_ClearActionPerformed
Operands[0] = BigInteger.ZERO;
Operands[1] = BigInteger.ZERO;
Operation = "";
performOperation();
changeAllBits(Operands[Active]);

Expand Down

0 comments on commit 72c2b47

Please sign in to comment.