Date: Wed, 17 May 2000 08:21:44 -0700 From: Don Lewis <Don.Lewis@tsc.tdk.com> To: Jonathan Lemon <jlemon@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/netinet ip_input.c Message-ID: <200005171521.IAA29807@salsa.gv.tsc.tdk.com> In-Reply-To: <200005170405.VAA69180@freefall.freebsd.org> References: <200005170405.VAA69180@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On May 16, 9:05pm, Jonathan Lemon wrote: } Subject: cvs commit: src/sys/netinet ip_input.c } jlemon 2000/05/16 21:05:07 PDT } } Modified files: } sys/netinet ip_input.c } Log: } Cast sizeof() calls to be of type (int) when they appear in a signed } integer expression. Otherwise the sizeof() call will force the expression } to be evaluated as unsigned, which is not the intended behavior. Wouldn't (ssize_t) be more correct? I don't expect it to make any difference in this case, but on some architectures the size of a large object may not fit in an int. 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?200005171521.IAA29807>