summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2006-06-01 23:17:24 +0000
committerJason Wright <jason@cvs.openbsd.org>2006-06-01 23:17:24 +0000
commitde79c9dc0be22543519cc63dae34eee1dec4a19c (patch)
tree138998dc92c8e76a6c55537a616a623ef8c156c4 /sys/kern
parent73872092b222a695c4736d7bc44beec73b0bf74d (diff)
the bit shifted should be a type at least as wide as the comparison (u_quad_t)
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/subr_prf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c
index 4387fd49e3b..4ad5ed3cea7 100644
--- a/sys/kern/subr_prf.c
+++ b/sys/kern/subr_prf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_prf.c,v 1.65 2006/05/29 20:33:15 jason Exp $ */
+/* $OpenBSD: subr_prf.c,v 1.66 2006/06/01 23:17:23 jason Exp $ */
/* $NetBSD: subr_prf.c,v 1.45 1997/10/24 18:14:25 chuck Exp $ */
/*-
@@ -741,7 +741,7 @@ reswitch: switch (ch) {
n &= 0x7f;
else if (n < ' ')
n = n - 1;
- if (_uquad & (1 << n)) {
+ if (_uquad & (1LL << n)) {
KPRINTF_PUTCHAR(tmp ? ',':'<');
while (*b > ' ' &&
(*b & 0x80) == 0) {