Date: Sat, 17 May 2003 18:00:36 -0700 (PDT) From: "KAREN THODE" <thode12@msn.com> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/27275: kernel bug ? Message-ID: <200305180100.h4I10aNv063074@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/27275; it has been noted by GNATS. From: "KAREN THODE" <thode12@msn.com> To: <freebsd-gnats-submit@FreeBSD.org>, <land@dnepr.net> 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 <HTML><BODY STYLE=3D"font:10pt verdana; border:none;"><DIV>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:</DIV> = <DIV> </DIV> <DIV>#define trapneg(arg) ((arg < 0)?arg=3D0:;)</DIV= > <DIV> </DIV> <DIV>Lucas<BR><BR></DIV></BODY></HTML> ------=_NextPart_001_0001_01C31CAE.C21EC6F0--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305180100.h4I10aNv063074>