]> hydra-www.ietfng.org Git - xv6-public/commitdiff
Add parens to clarify.
authorPeter H. Froehlich <peter.hans.froehlich@gmail.com>
Sun, 27 Sep 2015 03:09:49 +0000 (23:09 -0400)
committerPeter H. Froehlich <peter.hans.froehlich@gmail.com>
Sun, 27 Sep 2015 03:09:49 +0000 (23:09 -0400)
console.c

index 766dc3086732836dc6c29a0747669ceba40753ea..ed0b73b3d941e13ceda36ed044af72708dc46875 100644 (file)
--- a/console.c
+++ b/console.c
@@ -31,7 +31,7 @@ printint(int xx, int base, int sign)
   int i;
   uint x;
 
-  if(sign && (sign = xx < 0))
+  if(sign && (sign = (xx < 0)))
     x = -xx;
   else
     x = xx;