diff options
author | Tristan Gingold <tgingold@free.fr> | 2017-02-13 21:26:39 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2017-02-13 21:26:39 +0100 |
commit | f7e455245d9d12f69e2bb8eb67a84c1961cc20f3 (patch) | |
tree | c55bcae9a3dae5a189d8f4bff045316f268b14a0 /src/synth | |
parent | 19629cdc1576bb17a033ac57c8ef7eb239e45fe6 (diff) | |
download | ghdl-f7e455245d9d12f69e2bb8eb67a84c1961cc20f3.tar.gz ghdl-f7e455245d9d12f69e2bb8eb67a84c1961cc20f3.tar.bz2 ghdl-f7e455245d9d12f69e2bb8eb67a84c1961cc20f3.zip |
synth-expr.adb: fix Synth_Indexed_Name.
Diffstat (limited to 'src/synth')
-rw-r--r-- | src/synth/synth-expr.adb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/synth/synth-expr.adb b/src/synth/synth-expr.adb index 009af9cf7..6f5f0a9f9 100644 --- a/src/synth/synth-expr.adb +++ b/src/synth/synth-expr.adb @@ -487,9 +487,9 @@ package body Synth.Expr is case Rng.Dir is when Iir_To => - return Bit_Extract (Pfx, Uns32 (Rng.Right - Idx)); - when Iir_Downto => return Bit_Extract (Pfx, Uns32 (Idx - Rng.Left)); + when Iir_Downto => + return Bit_Extract (Pfx, Uns32 (Rng.Right - Idx)); end case; end Synth_Indexed_Name; |