aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/synth-stmts.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/synth/synth-stmts.adb')
-rw-r--r--src/synth/synth-stmts.adb4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/synth/synth-stmts.adb b/src/synth/synth-stmts.adb
index 53d4f4515..5aad73c76 100644
--- a/src/synth/synth-stmts.adb
+++ b/src/synth/synth-stmts.adb
@@ -355,6 +355,10 @@ 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 =>
+ -- TODO: signed values.
+ Dc := 0;
+ Val := Uns64 (Get_Value (Expr));
when others =>
Error_Kind ("convert_to_uns64", Expr_Type);
end case;