From 5bcc890fe425ca6d63e12f4d462c63fb36c7c6e7 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 12 Feb 2020 06:23:06 +0100 Subject: synth-static_oper: handle more division operands. Fix #1134 From donnie-j --- src/synth/synth-static_oper.adb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/synth/synth-static_oper.adb b/src/synth/synth-static_oper.adb index be4857990..3bf2a1b9f 100644 --- a/src/synth/synth-static_oper.adb +++ b/src/synth/synth-static_oper.adb @@ -331,7 +331,8 @@ package body Synth.Static_Oper is Res_Typ); when Iir_Predefined_Integer_Div => return Create_Value_Discrete - (Left.Scal / Right.Scal, Res_Typ); + (Get_Static_Discrete (Left) / Get_Static_Discrete (Right), + Res_Typ); when Iir_Predefined_Integer_Mod => return Create_Value_Discrete (Get_Static_Discrete (Left) mod Get_Static_Discrete (Right), -- cgit v1.2.3