aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/igc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/igc.c b/src/igc.c
index 3e39772d49c..c8862d200da 100644
--- a/src/igc.c
+++ b/src/igc.c
@@ -635,6 +635,7 @@ igc_header_type (union igc_header *h)
635{ 635{
636 if (header_tag (h) == IGC_TAG_EXTHDR) 636 if (header_tag (h) == IGC_TAG_EXTHDR)
637 return header_exthdr (h)->obj_type; 637 return header_exthdr (h)->obj_type;
638 igc_assert (header_tag (h) == IGC_TAG_OBJ);
638 return header_type (h); 639 return header_type (h);
639} 640}
640 641
@@ -643,6 +644,7 @@ igc_header_hash (union igc_header *h)
643{ 644{
644 if (header_tag (h) == IGC_TAG_EXTHDR) 645 if (header_tag (h) == IGC_TAG_EXTHDR)
645 return header_exthdr (h)->hash; 646 return header_exthdr (h)->hash;
647 igc_assert (header_tag (h) == IGC_TAG_OBJ);
646 return header_hash (h); 648 return header_hash (h);
647} 649}
648 650
@@ -651,6 +653,7 @@ igc_header_nwords (const union igc_header *h)
651{ 653{
652 if (header_tag (h) == IGC_TAG_EXTHDR) 654 if (header_tag (h) == IGC_TAG_EXTHDR)
653 return header_exthdr (h)->nwords; 655 return header_exthdr (h)->nwords;
656 igc_assert (header_tag (h) == IGC_TAG_OBJ);
654 return header_nwords (h); 657 return header_nwords (h);
655} 658}
656 659