aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/ieee-vital_timing.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/vhdl/ieee-vital_timing.adb')
-rw-r--r--src/vhdl/ieee-vital_timing.adb6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vhdl/ieee-vital_timing.adb b/src/vhdl/ieee-vital_timing.adb
index c47ffb445..1d4885c7e 100644
--- a/src/vhdl/ieee-vital_timing.adb
+++ b/src/vhdl/ieee-vital_timing.adb
@@ -571,7 +571,7 @@ package body Ieee.Vital_Timing is
elsif Get_Kind (Ptype) = Iir_Kind_Array_Subtype_Definition
and then Get_Base_Type (Ptype) = Std_Logic_Vector_Type
then
- Itype := Get_First_Element (Get_Index_Subtype_List (Ptype));
+ Itype := Get_Nth_Element (Get_Index_Subtype_List (Ptype), 0);
if Get_Type_Staticness (Itype) /= Locally then
return Port_Length_Unknown;
end if;
@@ -640,8 +640,8 @@ package body Ieee.Vital_Timing is
is
Itype : Iir;
begin
- Itype := Get_First_Element
- (Get_Index_Subtype_List (Get_Type (Gen_Decl)));
+ Itype := Get_Nth_Element
+ (Get_Index_Subtype_List (Get_Type (Gen_Decl)), 0);
if Get_Type_Staticness (Itype) /= Locally then
return Port_Length_Unknown;
else