diff options
author | Tristan Gingold <tgingold@free.fr> | 2015-06-09 20:15:53 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2015-06-09 20:15:53 +0200 |
commit | 051c628175b30d752db4d8e292b992c30364116f (patch) | |
tree | f55174c79581d0a250c357328b50bdd9798782c8 | |
parent | a1967a7c1aa5a59d53e359b0b0b55765d5b6bbfd (diff) | |
download | ghdl-051c628175b30d752db4d8e292b992c30364116f.tar.gz ghdl-051c628175b30d752db4d8e292b992c30364116f.tar.bz2 ghdl-051c628175b30d752db4d8e292b992c30364116f.zip |
evaluation: handle fp_literal in build_constant.
-rw-r--r-- | src/vhdl/evaluation.adb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vhdl/evaluation.adb b/src/vhdl/evaluation.adb index 76464a777..589ab1fb2 100644 --- a/src/vhdl/evaluation.adb +++ b/src/vhdl/evaluation.adb @@ -199,7 +199,8 @@ package body Evaluation is return Build_Enumeration_Constant (Iir_Index32 (Get_Enum_Pos (Val)), Origin); - when Iir_Kind_Physical_Int_Literal => + when Iir_Kind_Physical_Int_Literal + | Iir_Kind_Physical_Fp_Literal => Res := Create_Iir (Iir_Kind_Physical_Int_Literal); Set_Unit_Name (Res, Get_Primary_Unit_Name (Get_Base_Type (Get_Type (Origin)))); |