Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 May 2002 23:53:20 -0700 (PDT)
From:      Akinori MUSHA <knu@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/usr.sbin/moused moused.c
Message-ID:  <200205190653.g4J6rKj58257@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205190653.g4J6rKj58257>