aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/synth/synth-static_oper.adb6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/synth/synth-static_oper.adb b/src/synth/synth-static_oper.adb
index 251e25693..270260b71 100644
--- a/src/synth/synth-static_oper.adb
+++ b/src/synth/synth-static_oper.adb
@@ -441,12 +441,14 @@ package body Synth.Static_Oper is
when Iir_Predefined_Integer_Exp =>
return Create_Value_Discrete
(Left.Scal ** Natural (Right.Scal), Res_Typ);
- when Iir_Predefined_Physical_Minimum =>
+ when Iir_Predefined_Physical_Minimum
+ | Iir_Predefined_Integer_Minimum =>
return Create_Value_Discrete
(Int64'Min (Get_Static_Discrete (Left),
Get_Static_Discrete (Right)),
Res_Typ);
- when Iir_Predefined_Physical_Maximum =>
+ when Iir_Predefined_Physical_Maximum
+ | Iir_Predefined_Integer_Maximum =>
return Create_Value_Discrete
(Int64'Max (Get_Static_Discrete (Left),
Get_Static_Discrete (Right)),