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.
This commit is contained in:
parent
eb9f04ddd9
commit
89017bc259
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=299183
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user