From owner-freebsd-bugs@FreeBSD.ORG Sat May 17 18:00:37 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 17B1C37B401 for ; Sat, 17 May 2003 18:00:37 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B3F6443FEA for ; Sat, 17 May 2003 18:00:36 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h4I10aUp063075 for ; Sat, 17 May 2003 18:00:36 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h4I10aNv063074; Sat, 17 May 2003 18:00:36 -0700 (PDT) Date: Sat, 17 May 2003 18:00:36 -0700 (PDT) Message-Id: <200305180100.h4I10aNv063074@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: "KAREN THODE" Subject: Re: kern/27275: kernel bug ? X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: KAREN THODE List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 May 2003 01:00:37 -0000 The following reply was made to PR kern/27275; it has been noted by GNATS. From: "KAREN THODE" To: , Cc: Subject: Re: kern/27275: kernel bug ? Date: Sat, 17 May 2003 19:59:00 -0500 ------=_NextPart_001_0001_01C31CAE.C21EC6F0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I have a macro that will trap the exception, or you could change the type= of the variable in question to an unsigned type. The macro is as follow= s: #define trapneg(arg) ((arg < 0)?arg=3D0:;) Lucas ------=_NextPart_001_0001_01C31CAE.C21EC6F0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I have a macro= that will trap the exception, or you could change the type of the variab= le in question to an unsigned type.  The macro is as follows:
=
 
#define trapneg(arg) ((arg < 0)?arg=3D0:;)
 
Lucas

------=_NextPart_001_0001_01C31CAE.C21EC6F0--