Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added clarifying parenthesises to VirtualKeyboard

  • Loading branch information...
commit 5af07b9350896ac3417c9a82aae7a982ecee86c3 1 parent 82a5b74
Anton authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 src/computer/VirtualKeyboard.java
6 src/computer/VirtualKeyboard.java
@@ -19,7 +19,7 @@ public void keyTyped(int i) {
19 19 return;
20 20 } else {
21 21 ram[offset + pp] = (short) i;
22   - pp = pp + 1 & 0xf;
  22 + pp = (pp + 1) & 0xf;
23 23 return;
24 24 }
25 25 }
@@ -33,7 +33,7 @@ public void keyPressed(int key) {
33 33 return;
34 34 } else {
35 35 ram[offset + pp] = (short) i;
36   - pp = pp + 1 & 0xf;
  36 + pp = (pp + 1) & 0xf;
37 37 return;
38 38 }
39 39 }
@@ -47,7 +47,7 @@ public void keyReleased(int key) {
47 47 return;
48 48 } else {
49 49 ram[offset + pp] = (short) (i | 0x100);
50   - pp = pp + 1 & 0xf;
  50 + pp = (pp + 1) & 0xf;
51 51 return;
52 52 }
53 53 }

0 comments on commit 5af07b9

Please sign in to comment.
Something went wrong with that request. Please try again.