Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 47f47471983b77adbfb86559169d173d6fc5c88b 1 parent 75c0bc1
@nelhage authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.