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
@ -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