Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / usrsctp / usrsctplib / user_mbuf.h
index e5e286d..f371740 100755 (executable)
@@ -163,9 +163,9 @@ struct mbstat {
  * externally and attach it to the mbuf in a way similar to that of mbuf
  * clusters.
  */
-#define        MLEN            (MSIZE - sizeof(struct m_hdr))  /* normal data len */
-#define        MHLEN           (MLEN - sizeof(struct pkthdr))  /* data len w/pkthdr */
-#define        MINCLSIZE       (MHLEN + 1)     /* smallest amount to put in cluster */
+#define        MLEN            ((int)(MSIZE - sizeof(struct m_hdr)))   /* normal data len */
+#define        MHLEN           ((int)(MLEN - sizeof(struct pkthdr)))   /* data len w/pkthdr */
+#define        MINCLSIZE       ((int)(MHLEN + 1))      /* smallest amount to put in cluster */
 #define        M_MAXCOMPRESS   (MHLEN / 2)     /* max amount to copy for compression */