Permalink
Browse files

Added clarifying parenthesises to VirtualKeyboard

  • Loading branch information...
1 parent 82a5b74 commit 5af07b9350896ac3417c9a82aae7a982ecee86c3 @aimozg committed Apr 23, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/computer/VirtualKeyboard.java
View
6 src/computer/VirtualKeyboard.java
@@ -19,7 +19,7 @@ public void keyTyped(int i) {
return;
} else {
ram[offset + pp] = (short) i;
- pp = pp + 1 & 0xf;
+ pp = (pp + 1) & 0xf;
return;
}
}
@@ -33,7 +33,7 @@ public void keyPressed(int key) {
return;
} else {
ram[offset + pp] = (short) i;
- pp = pp + 1 & 0xf;
+ pp = (pp + 1) & 0xf;
return;
}
}
@@ -47,7 +47,7 @@ public void keyReleased(int key) {
return;
} else {
ram[offset + pp] = (short) (i | 0x100);
- pp = pp + 1 & 0xf;
+ pp = (pp + 1) & 0xf;
return;
}
}

0 comments on commit 5af07b9

Please sign in to comment.