Date: Fri, 6 May 2016 16:03:40 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r299183 - head/lib/libc/xdr Message-ID: <201605061603.u46G3eXZ017201@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pfg Date: Fri May 6 16:03:40 2016 New Revision: 299183 URL: https://svnweb.freebsd.org/changeset/base/299183 Log: libc/xdr: unsign some loop indexes. Although usually small, values produced by nitems() are unsigned. Unsign inxdeing variables related to nitems() macros to avoid signed vs. unsigned comparisons. Modified: head/lib/libc/xdr/xdr_float.c Modified: head/lib/libc/xdr/xdr_float.c ============================================================================== --- head/lib/libc/xdr/xdr_float.c Fri May 6 15:41:38 2016 (r299182) +++ head/lib/libc/xdr/xdr_float.c Fri May 6 16:03:40 2016 (r299183) @@ -101,7 +101,7 @@ xdr_float(XDR *xdrs, float *fp) struct ieee_single is; struct vax_single vs, *vsp; struct sgl_limits *lim; - int i; + u_int i; #endif switch (xdrs->x_op) { @@ -203,7 +203,7 @@ xdr_double(XDR *xdrs, double *dp) struct ieee_double id; struct vax_double vd; struct dbl_limits *lim; - int i; + u_int i; #endif switch (xdrs->x_op) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605061603.u46G3eXZ017201>