From: Chris Hanson Date: Thu, 30 Mar 2017 06:31:37 +0000 (-0700) Subject: Fix bugs: typos caught by the macos compiler. X-Git-Tag: mit-scheme-pucked-9.2.12~158^2~60^2 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=3e47c889a4fbdd4f5911df31e1f53144ddfebb05;p=mit-scheme.git Fix bugs: typos caught by the macos compiler. --- diff --git a/src/microcode/uxsig.c b/src/microcode/uxsig.c index bb9d1ceba..284663d08 100644 --- a/src/microcode/uxsig.c +++ b/src/microcode/uxsig.c @@ -305,12 +305,12 @@ find_signal_name (int signo) } void -foreach_async_signal (void(*func)(int signo)) +foreach_async_signal (void (*func) (int signo)) { struct signal_descriptor * scan = signal_descriptors; struct signal_descriptor * end = (scan + signal_descriptors_length); for (; (scan < end); scan += 1) - if ((scan -> flags) && ASYNC) + if ((scan -> flags) & ASYNC) func (scan -> signo); } diff --git a/src/microcode/x11base.c b/src/microcode/x11base.c index c63e0b071..d91306cad 100644 --- a/src/microcode/x11base.c +++ b/src/microcode/x11base.c @@ -1161,8 +1161,8 @@ key_event (struct xwindow * xw, XKeyEvent * event, enum event_type type) /* Make ShiftLock modifier not affect keys with other modifiers. */ if ((event->state) - & (ShiftMask || ControlMask - || Mod1Mask || Mod2Mask || Mod3Mask || Mod4Mask || Mod5Mask)) + & (ShiftMask | ControlMask + | Mod1Mask | Mod2Mask | Mod3Mask | Mod4Mask | Mod5Mask)) { if (((event->state) & LockMask) != 0) (event->state) &=~ LockMask;