diff options
author | pfg <pfg@FreeBSD.org> | 2016-05-06 16:03:40 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-05-06 16:03:40 +0000 |
commit | 0bb25b8d7b1f4524d2a9b3c950eedbafbbc63d0d (patch) | |
tree | 446bdf4fb06602ab4d5f53df242ab688649d1371 /lib | |
parent | 21d823059f5fb0f7e7c4638a13112f9e40f8df2b (diff) | |
download | FreeBSD-src-0bb25b8d7b1f4524d2a9b3c950eedbafbbc63d0d.zip FreeBSD-src-0bb25b8d7b1f4524d2a9b3c950eedbafbbc63d0d.tar.gz |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/xdr/xdr_float.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/xdr/xdr_float.c b/lib/libc/xdr/xdr_float.c index cc4dd2d..1f16a4e 100644 --- a/lib/libc/xdr/xdr_float.c +++ b/lib/libc/xdr/xdr_float.c @@ -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) { |