diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-04-22 21:31:33 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-04-22 21:31:33 +0200 |
commit | 0509e5ae98b1018ebcfe44240c6d71cec9cc6c52 (patch) | |
tree | 8a7d9dfdc42c95711b4bb2c1e7610483daf80867 /src/vhdl/translate/trans-chap3.adb | |
parent | 72b5a66438052bf7e089b7f5ab1fee3462aa2a81 (diff) | |
download | ghdl-0509e5ae98b1018ebcfe44240c6d71cec9cc6c52.tar.gz ghdl-0509e5ae98b1018ebcfe44240c6d71cec9cc6c52.tar.bz2 ghdl-0509e5ae98b1018ebcfe44240c6d71cec9cc6c52.zip |
evaluation: weaken error for out of bound static value.
Diffstat (limited to 'src/vhdl/translate/trans-chap3.adb')
-rw-r--r-- | src/vhdl/translate/trans-chap3.adb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vhdl/translate/trans-chap3.adb b/src/vhdl/translate/trans-chap3.adb index 5583ee7b9..a0b6bd302 100644 --- a/src/vhdl/translate/trans-chap3.adb +++ b/src/vhdl/translate/trans-chap3.adb @@ -2065,13 +2065,13 @@ package body Trans.Chap3 is end; when Type_Mode_I32 => declare - V : Iir_Int32; + V : Int64; begin - V := Iir_Int32 (Get_Value (Lit)); + V := Get_Value (Lit); if Is_Hi then - return V = Iir_Int32'Last; + return V = Int64 (Iir_Int32'Last); else - return V = Iir_Int32'First; + return V = Int64 (Iir_Int32'First); end if; end; when Type_Mode_P32 => |