From: Clifford Wolf Date: Thu, 21 Feb 2019 16:55:33 +0000 (+0100) Subject: Fix handling of expression width in $past, fixes #810 X-Git-Tag: yosys-0.9~305^2~2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=974927adcf916fc953ae4b756fd1806cfa423655;p=yosys.git Fix handling of expression width in $past, fixes #810 Signed-off-by: Clifford Wolf --- diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc index 83714f897..6ae62ead8 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -1778,7 +1778,7 @@ skip_dynamic_range_lvalue_expansion:; if (str == "\\$past") { - if (width_hint <= 0) + if (width_hint < 0) goto replace_fcall_later; int num_steps = 1;