3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-13 04:28:18 +00:00

Fix handling of expression width in $past, fixes #810

Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
Clifford Wolf 2019-02-21 17:55:33 +01:00
parent 28fba903c5
commit 974927adcf

View file

@ -1778,7 +1778,7 @@ skip_dynamic_range_lvalue_expansion:;
if (str == "\\$past") if (str == "\\$past")
{ {
if (width_hint <= 0) if (width_hint < 0)
goto replace_fcall_later; goto replace_fcall_later;
int num_steps = 1; int num_steps = 1;