diff options
author | Tristan Gingold | 2014-11-27 07:26:08 +0100 |
---|---|---|
committer | Tristan Gingold | 2014-11-27 07:26:08 +0100 |
commit | dbcf503f9d04da7ab62cb8c8e593e8a7107e40ec (patch) | |
tree | 734379509fa09eb5bebc1cd5a20ddea60a00de8c /src/vhdl/translate | |
parent | 6bf8619f95d1bbc44b7fad7da0c0a2596967d335 (diff) | |
download | ghdl-dbcf503f9d04da7ab62cb8c8e593e8a7107e40ec.tar.gz ghdl-dbcf503f9d04da7ab62cb8c8e593e8a7107e40ec.tar.bz2 ghdl-dbcf503f9d04da7ab62cb8c8e593e8a7107e40ec.zip |
translate: fix dichotomy upper bound.
Diffstat (limited to 'src/vhdl/translate')
-rw-r--r-- | src/vhdl/translate/trans-chap8.adb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vhdl/translate/trans-chap8.adb b/src/vhdl/translate/trans-chap8.adb index 72aa77a..8f63e78 100644 --- a/src/vhdl/translate/trans-chap8.adb +++ b/src/vhdl/translate/trans-chap8.adb @@ -999,7 +999,7 @@ package body Trans.Chap8 is New_Assign_Stmt (New_Obj (Var_Hi), New_Lit (New_Unsigned_Literal (Ghdl_Index_Type, - Unsigned_64 (Nbr_Choices)))); + Unsigned_64 (Nbr_Choices - 1)))); Func := Chap7.Find_Predefined_Function (Get_Base_Type (Expr_Type), Iir_Predefined_Array_Greater); |