aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-01-18 06:47:58 +0100
committerTristan Gingold <tgingold@free.fr>2017-01-18 06:47:58 +0100
commit005c57ece3507c4336c51f36b2febd2e6c3b4835 (patch)
tree5d78dcb4b977104840fcdae7033aa5a5a48592e3 /src/vhdl
parentdfc6de009ca1edd02e9e6b8cc7eb5a8972507756 (diff)
downloadghdl-005c57ece3507c4336c51f36b2febd2e6c3b4835.tar.gz
ghdl-005c57ece3507c4336c51f36b2febd2e6c3b4835.tar.bz2
ghdl-005c57ece3507c4336c51f36b2febd2e6c3b4835.zip
evaluation: handle null array in aggregate_to_simple_aggregate
Diffstat (limited to 'src/vhdl')
-rw-r--r--src/vhdl/evaluation.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vhdl/evaluation.adb b/src/vhdl/evaluation.adb
index baa100c87..cbdec289f 100644
--- a/src/vhdl/evaluation.adb
+++ b/src/vhdl/evaluation.adb
@@ -563,7 +563,7 @@ package body Evaluation is
Index_Range : constant Iir := Eval_Static_Range (Index_Type);
Len : constant Iir_Int64 := Eval_Discrete_Range_Length (Index_Range);
Assocs : constant Iir := Get_Association_Choices_Chain (Aggr);
- Vect : Iir_Array (0 .. Natural (Len - 1));
+ Vect : Iir_Array (0 .. Integer (Len - 1));
List : Iir_List;
Assoc : Iir;
Expr : Iir;