From owner-cvs-all Sat May 18 23:53:27 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 24D0637B407; Sat, 18 May 2002 23:53:21 -0700 (PDT) Received: (from knu@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4J6rKj58257; Sat, 18 May 2002 23:53:20 -0700 (PDT) (envelope-from knu) Message-Id: <200205190653.g4J6rKj58257@freefall.freebsd.org> From: Akinori MUSHA Date: Sat, 18 May 2002 23:53:20 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/moused moused.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG knu 2002/05/18 23:53:20 PDT Modified files: usr.sbin/moused moused.c Log: Work around a code generation bug of GCC 3.1 by replacing `/2' with `>>1'. In the context `>>1' is more appropriate because it looks like the division is used to restore a shifted value. GCC GNATS PR: c/6677 This fixes a problem where wheel-up movement is taken as wheel-down in the sysmouse protocol. Do not assume the plain char's are signed; use `signed char' where char's need to be signed. Discussed on: audit Pointed out by: bde Revision Changes Path 1.56 +14 -14 src/usr.sbin/moused/moused.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message