summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/rpc/xdr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/rpc/xdr.c b/src/lib/rpc/xdr.c
index ff67e90f6..8689ee316 100644
--- a/src/lib/rpc/xdr.c
+++ b/src/lib/rpc/xdr.c
@@ -145,7 +145,7 @@ xdr_u_int(XDR *xdrs, u_int *up)
if (!XDR_GETLONG(xdrs, (long *) &l))
return (FALSE);
- if (l > UINT_MAX)
+ if ((uint32_t)l > UINT_MAX)
return (FALSE);
*up = (u_int) l;