Skip to content
Browse files

softusb: protect macro arguments in comloc.h

This change is purely cosmetic.
  • Loading branch information...
1 parent 98be89d commit b452f54fa1a7b8ea836711df86b634854f7a94c6 @wpwrak wpwrak committed with sbourdeauducq Nov 30, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 softusb-input/comloc.h
View
6 softusb-input/comloc.h
@@ -22,10 +22,10 @@
#define COMLOCV(x) (*(volatile unsigned char *)(x))
#define COMLOC_DEBUG_PRODUCE COMLOC(0x1000)
-#define COMLOC_DEBUG(offset) COMLOC(0x1001+offset)
+#define COMLOC_DEBUG(offset) COMLOC(0x1001+(offset))
#define COMLOC_MEVT_PRODUCE COMLOC(0x1101)
-#define COMLOC_MEVT(offset) COMLOC(0x1102+offset)
+#define COMLOC_MEVT(offset) COMLOC(0x1102+(offset))
#define COMLOC_KEVT_PRODUCE COMLOC(0x1142)
-#define COMLOC_KEVT(offset) COMLOC(0x1143+offset)
+#define COMLOC_KEVT(offset) COMLOC(0x1143+(offset))
#endif /* __COMLOC_H */

0 comments on commit b452f54

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