summaryrefslogtreecommitdiff
path: root/usr.bin/vi/common/key.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/vi/common/key.c')
-rw-r--r--usr.bin/vi/common/key.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/vi/common/key.c b/usr.bin/vi/common/key.c
index f08a2039c5a..80b094e69c6 100644
--- a/usr.bin/vi/common/key.c
+++ b/usr.bin/vi/common/key.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: key.c,v 1.7 2005/10/17 19:12:16 otto Exp $ */
+/* $OpenBSD: key.c,v 1.8 2006/01/08 21:05:39 miod Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
@@ -434,10 +434,10 @@ v_event_append(sp, argp)
/* Remove events from the queue. */
#define QREM(len) { \
- if ((gp->i_cnt -= len) == 0) \
+ if ((gp->i_cnt -= (len)) == 0) \
gp->i_next = 0; \
else \
- gp->i_next += len; \
+ gp->i_next += (len); \
}
/*
@@ -632,7 +632,7 @@ newmap: evp = &gp->i_event[gp->i_next];
*/
if (istimeout || F_ISSET(&evp->e_ch, CH_NOMAP) ||
!LF_ISSET(EC_MAPCOMMAND | EC_MAPINPUT) ||
- evp->e_c < MAX_BIT_SEQ && !bit_test(gp->seqb, evp->e_c))
+ (evp->e_c < MAX_BIT_SEQ && !bit_test(gp->seqb, evp->e_c)))
goto nomap;
/* Search the map. */