summaryrefslogtreecommitdiffstats
path: root/sys/dev/joy
diff options
context:
space:
mode:
authorjmz <jmz@FreeBSD.org>1995-01-29 01:00:14 +0000
committerjmz <jmz@FreeBSD.org>1995-01-29 01:00:14 +0000
commit27434d033f0c367482bf2ee5e217ca7c0d035e36 (patch)
tree6731115972ce1080480bcb73a91ce4560b1b8208 /sys/dev/joy
parent8da1f09e8eb3872845ee28f5916db8e8a064d890 (diff)
downloadFreeBSD-src-27434d033f0c367482bf2ee5e217ca7c0d035e36.zip
FreeBSD-src-27434d033f0c367482bf2ee5e217ca7c0d035e36.tar.gz
Add parentheses around macros!
Diffstat (limited to 'sys/dev/joy')
-rw-r--r--sys/dev/joy/joy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/joy/joy.c b/sys/dev/joy/joy.c
index 83ff11a..aacd92e 100644
--- a/sys/dev/joy/joy.c
+++ b/sys/dev/joy/joy.c
@@ -52,8 +52,8 @@
/* the formulae below only work if u is ``not too large''. See also
* the discussion in microtime.s */
-#define usec2ticks(u) ((u) * 19549)>>14
-#define ticks2usec(u) ((u) * 3433)>>12
+#define usec2ticks(u) (((u) * 19549)>>14)
+#define ticks2usec(u) (((u) * 3433)>>12)
#define joypart(d) minor(d)&1
OpenPOWER on IntegriCloud