From 832f757f9dd8b292c43157a2abdf7c35357adf57 Mon Sep 17 00:00:00 2001 From: maya Date: Wed, 14 Mar 2018 18:58:32 +0000 Subject: [PATCH] Don't left shift a negative, use unsigned for bit masks. Appeases GCC 6 in some build configuration (ALL kernel) ok uwe --- sys/dev/ic/igsfb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/ic/igsfb.c b/sys/dev/ic/igsfb.c index a6e0f806ed02..ef404fd2ab2f 100644 --- a/sys/dev/ic/igsfb.c +++ b/sys/dev/ic/igsfb.c @@ -1,4 +1,4 @@ -/* $NetBSD: igsfb.c,v 1.57 2018/01/24 05:35:58 riastradh Exp $ */ +/* $NetBSD: igsfb.c,v 1.58 2018/03/14 18:58:32 maya Exp $ */ /* * Copyright (c) 2002, 2003 Valeriy E. Ushakov @@ -31,7 +31,7 @@ * Integraphics Systems IGA 168x and CyberPro series. */ #include -__KERNEL_RCSID(0, "$NetBSD: igsfb.c,v 1.57 2018/01/24 05:35:58 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: igsfb.c,v 1.58 2018/03/14 18:58:32 maya Exp $"); #include #include @@ -1001,7 +1001,7 @@ igsfb_set_cursor(struct igsfb_devconfig *dc, const struct wsdisplay_cursor *p) /* clear trailing bits in the "partial" mask bytes */ trailing_bits = p->size.x & 0x07; if (trailing_bits != 0) { - const u_int cutmask = ~((~0) << trailing_bits); + const u_int cutmask = ~((~0U) << trailing_bits); u_char *mp; u_int i;