Left-shifting all the way in signed math is undefined, use unsigned
authorKen Raeburn <raeburn@mit.edu>
Fri, 25 Apr 2008 18:38:52 +0000 (18:38 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 25 Apr 2008 18:38:52 +0000 (18:38 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20310 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/rpc/xdr_rec.c

index 38e1f632352b0ef59e80e189b2b567d8e419b9b8..05e42e975a70a6cc335558044b18e586517a1bf0 100644 (file)
@@ -89,7 +89,7 @@ static struct  xdr_ops xdrrec_ops = {
  * meet the needs of xdr and rpc based on tcp.
  */
 
-#define LAST_FRAG ((uint32_t)(1L << 31))
+#define LAST_FRAG ((uint32_t)(1UL << 31))
 
 typedef struct rec_strm {
        caddr_t tcp_handle;