summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_gr.h
diff options
context:
space:
mode:
Diffstat (limited to 'ospf6d/ospf6_gr.h')
-rw-r--r--ospf6d/ospf6_gr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ospf6d/ospf6_gr.h b/ospf6d/ospf6_gr.h
index 6406e8efee..28798d8717 100644
--- a/ospf6d/ospf6_gr.h
+++ b/ospf6d/ospf6_gr.h
@@ -93,7 +93,7 @@ struct tlv_header {
#define TLV_BODY_SIZE(tlvh) (ROUNDUP(ntohs((tlvh)->length), sizeof(uint32_t)))
-#define TLV_SIZE(tlvh) (TLV_HDR_SIZE + TLV_BODY_SIZE(tlvh))
+#define TLV_SIZE(tlvh) (uint32_t)(TLV_HDR_SIZE + TLV_BODY_SIZE(tlvh))
#define TLV_HDR_TOP(lsah) \
(struct tlv_header *)((char *)(lsah) + OSPF6_LSA_HEADER_SIZE)