aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-10-10 07:44:18 +0200
committerTristan Gingold <tgingold@free.fr>2019-10-10 07:44:18 +0200
commit2edfc6c75d5bddbe9dd613e9b2d7d38393b269a9 (patch)
treece5b6f27dae4c442dc55d8677afbddd8885e81f0 /src
parent1ed07f150ef05cf71e04a626c403f28ad1510358 (diff)
downloadghdl-2edfc6c75d5bddbe9dd613e9b2d7d38393b269a9.tar.gz
ghdl-2edfc6c75d5bddbe9dd613e9b2d7d38393b269a9.tar.bz2
ghdl-2edfc6c75d5bddbe9dd613e9b2d7d38393b269a9.zip
synth-opeer: extend synth_uresize
Diffstat (limited to 'src')
-rw-r--r--src/synth/synth-oper.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/synth/synth-oper.adb b/src/synth/synth-oper.adb
index 4ccb85ff7..353cd95e1 100644
--- a/src/synth/synth-oper.adb
+++ b/src/synth/synth-oper.adb
@@ -89,7 +89,7 @@ package body Synth.Oper is
Res : Net;
begin
if Is_Const (Val) and then Val.Typ.Kind = Type_Discrete then
- if Val.Typ.Drange.Is_Signed then
+ if Val.Typ.Drange.Is_Signed and then Val.Scal < 0 then
-- TODO.
raise Internal_Error;
else