svn commit: r299183 - head/lib/libc/xdr
Pedro F. Giffuni
pfg at FreeBSD.org
Fri May 6 16:03:41 UTC 2016
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) {
More information about the svn-src-all
mailing list