diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-11-13 18:51:53 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-11-13 18:51:53 +0100 |
commit | 8be466828c944a470b0324e7ba9bc1fdbbe9ab2b (patch) | |
tree | 286fb8753c20e45590277d6827ee70941c9c473c /src/synth/synth-stmts.adb | |
parent | e73e219ec12f0a18d24940e8486ecf6a7ca7bec8 (diff) | |
download | ghdl-8be466828c944a470b0324e7ba9bc1fdbbe9ab2b.tar.gz ghdl-8be466828c944a470b0324e7ba9bc1fdbbe9ab2b.tar.bz2 ghdl-8be466828c944a470b0324e7ba9bc1fdbbe9ab2b.zip |
synth: improve support of integer literals (with a
Diffstat (limited to 'src/synth/synth-stmts.adb')
-rw-r--r-- | src/synth/synth-stmts.adb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/synth/synth-stmts.adb b/src/synth/synth-stmts.adb index 70c29013c..a0fd6d713 100644 --- a/src/synth/synth-stmts.adb +++ b/src/synth/synth-stmts.adb @@ -745,7 +745,8 @@ package body Synth.Stmts is when Iir_Kind_Enumeration_Type_Definition => Dc := 0; Val := Uns64 (Get_Enum_Pos (Strip_Denoting_Name (Expr))); - when Iir_Kind_Integer_Type_Definition => + when Iir_Kind_Integer_Type_Definition + | Iir_Kind_Integer_Subtype_Definition => -- TODO: signed values. Dc := 0; Val := Uns64 (Get_Value (Expr)); |