aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/dom/Literal.py
diff options
context:
space:
mode:
authorumarcor <unai.martinezcorral@ehu.eus>2021-06-19 00:18:04 +0200
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-06-19 15:25:07 +0200
commit5764b4a86c3389ed0388c9382a112640a04dc0b0 (patch)
treedcc2db03a994871fcab4f6028dcd70d47e00a49c /pyGHDL/dom/Literal.py
parenta81f2f777e30dadc775380a362c7fe38280a5234 (diff)
downloadghdl-5764b4a86c3389ed0388c9382a112640a04dc0b0.tar.gz
ghdl-5764b4a86c3389ed0388c9382a112640a04dc0b0.tar.bz2
ghdl-5764b4a86c3389ed0388c9382a112640a04dc0b0.zip
pyGHDL: handle c_double
Diffstat (limited to 'pyGHDL/dom/Literal.py')
-rw-r--r--pyGHDL/dom/Literal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyGHDL/dom/Literal.py b/pyGHDL/dom/Literal.py
index 8b32d7163..7c722583b 100644
--- a/pyGHDL/dom/Literal.py
+++ b/pyGHDL/dom/Literal.py
@@ -57,7 +57,7 @@ class FloatingPointLiteral(VHDLModel_FloatingPointLiteral):
@classmethod
def parse(cls, node):
value = nodes.Get_Fp_Value(node)
- return cls(float(value))
+ return cls(value)
@export