]> hydra-www.ietfng.org Git - xv6-public/commitdiff
Add parens to clarify.
authorPeter H. Froehlich <peter.hans.froehlich@gmail.com>
Mon, 28 Sep 2015 05:00:37 +0000 (01:00 -0400)
committerPeter H. Froehlich <peter.hans.froehlich@gmail.com>
Mon, 28 Sep 2015 05:00:37 +0000 (01:00 -0400)
kbd.c

diff --git a/kbd.c b/kbd.c
index 32c1463fe3248ae521bbb45a2ab529f10e4f3e18..c3d120d07b6d699cf1f63118994828c2ef40defb 100644 (file)
--- a/kbd.c
+++ b/kbd.c
@@ -22,7 +22,7 @@ kbdgetc(void)
     return 0;
   } else if(data & 0x80){
     // Key released
-    data = (shift & E0ESC ? data : data & 0x7F);
+    data = ((shift & E0ESC) ? data : data & 0x7F);
     shift &= ~(shiftcode[data] | E0ESC);
     return 0;
   } else if(shift & E0ESC){