Permalink
Browse files

Parenthesize arguments in the {set,clear}_interrupt macros.

  • Loading branch information...
1 parent 75c0bc1 commit 47f47471983b77adbfb86559169d173d6fc5c88b @nelhage committed Apr 16, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 bcpu.h
View
4 bcpu.h
@@ -16,8 +16,8 @@
#define INT_KBD 0x0002
#define INT_MOUSE 0x0004
-#define set_interrupt(i) ({CPU.pending_interrupts |= i;})
-#define clear_interrupt(i) ({CPU.pending_interrupts &= ~i;})
+#define set_interrupt(i) ({CPU.pending_interrupts |= (i);})
+#define clear_interrupt(i) ({CPU.pending_interrupts &= ~(i);})
#define XP 30

0 comments on commit 47f4747

Please sign in to comment.